[gdb/testsuite] Fix regexp for reg value in jit-reader.exp
authorTom de Vries <tdevries@suse.de>
Wed, 16 Oct 2019 14:53:37 +0000 (16:53 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 16 Oct 2019 14:53:37 +0000 (16:53 +0200)
commitb17fcc10396991b4b095c279672398a9c54c03ab
tree7ea6aea209c4b1b1c15555317905c364ad693b6a
parent22216541c1796e9e1331d6f4e16b03a6f02e7381
[gdb/testsuite] Fix regexp for reg value in jit-reader.exp

On openSUSE Leap 15.1 (as well as on Fedora-x86_64-m64 buildbot) I see:
...
FAIL: gdb.base/jit-reader.exp: with jit-reader: after mangling: current frame: info registers
...

The problem is that r10 is printed signed:
...
r10            0xffffffffffffffb0  -80^M
...
but the regexp expects a signed value:
...
            "r10            $hex +$decimal" \
...

Fix this by allowing signed values.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-10-16  Tom de Vries  <tdevries@suse.de>

* gdb.base/jit-reader.exp: Allow non-pointer registers to be printed
as signed.

Change-Id: Ie494d24fad7a9af7ac6bfaf731c4aa04f1333830
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/jit-reader.exp