[PATCH][testsuite] Match symbol on address 0x0

Pedro Alves palves@redhat.com
Fri Jul 11 09:47:00 GMT 2014


On 07/11/2014 09:17 AM, Yao Qi wrote:
> We see the failing fails on arm-none-eabi target,
> 
> print (void*)v_signed_char^M
> $190 = (void *) 0x0 <_ftext>^M
> (gdb) FAIL: gdb.base/exprs.exp: print (void*)v_signed_char (print
> (void*)v_signed_char)
> 
> GDB behaves correctly but the test assumes there is no symbol on
> address 0x0.  That is not correct on bare metal targets.
> 
> (gdb) info symbol 0x0
> _ftext in section .text
> 
> This patch is to relax the pattern to match the possible symbol on
> address 0x0.  OK?

Indeed that seems like an irrelevant detail for the purpose of
the test.  Wouldn't just doing "set print symbol off" work?

-- 
Pedro Alves



More information about the Gdb-patches mailing list