gdb.ada/minsyms.exp: Don't hardcode the variable's address
This new testcase has a test that fails like this here: $1 = (<data variable, no debug info> *) 0x60208c <some_minsym> (gdb) FAIL: gdb.ada/minsyms.exp: print &some_minsym The problem is that the testcase hardcodes an expected address for the "some_minsym" variable, which obviously isn't stable. Fix that by expecting $hex instead. gdb/testsuite/ChangeLog: 2017-11-21 Pedro Alves <palves@redhat.com> * gdb.ada/minsyms.exp: Accept any address for 'some_minsym'.
This commit is contained in:
parent
2824e1bd4f
commit
a25d69c6dc
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2017-11-21 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.ada/minsyms.exp: Accept any address for 'some_minsym'.
|
||||
|
||||
2017-11-20 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.base/whatis-ptype-typedefs.c (double_typedef)
|
||||
|
|
|
@ -35,7 +35,7 @@ gdb_test "print integer(some_minsym)" \
|
|||
" = 1234"
|
||||
|
||||
gdb_test "print &some_minsym" \
|
||||
" = \\(access <data variable, no debug info>\\) 0x62c2f8 <some_minsym>"
|
||||
" = \\(access <data variable, no debug info>\\) $hex <some_minsym>"
|
||||
|
||||
gdb_test "print /x integer(&some_minsym)" \
|
||||
" = $hex"
|
||||
|
|
Loading…
Add table
Reference in a new issue