Re: [PATCH 1/2] gdb.ada/minsyms.exp: Don't hardcode the variable's address

Pedro Alves
2017-11-21T17:08:41Z

On 11/21/2017 04:50 PM, Joel Brobecker wrote:
>> This new testcase has a test that fails like this here:
>>
>> $1 = ( *) 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'.
>
> Gaaah. Head-slapping myself on that one.
>
> Thanks for fixing. Obviously OK :).

:-)

I pushed this one in, to get it out of the way.

Thanks,
Pedro Alves