gdb.ada/minsyms.exp: Don't hardcode the variable's address
authorPedro Alves <palves@redhat.com>
Tue, 21 Nov 2017 16:04:42 +0000 (16:04 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 21 Nov 2017 16:04:42 +0000 (16:04 +0000)
commita25d69c6dcbabf3f6629b847246ffb4ddbc29472
tree25015dbc008f464f3292f528026879a305a18f53
parent2824e1bd4fc93f112875969b1ba606980aaa55ba
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'.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/minsyms.exp