This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]