This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb.ada/minsyms.exp: Don't hardcode the variable's address
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 21 Nov 2017 12:30:05 -0500
- Subject: [binutils-gdb] gdb.ada/minsyms.exp: Don't hardcode the variable's address
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT a25d69c6dcbabf3f6629b847246ffb4ddbc29472 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: a25d69c6dcbabf3f6629b847246ffb4ddbc29472
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'.