This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][testsuite] Match symbol on address 0x0
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Fri, 11 Jul 2014 10:28:21 +0100
- Subject: Re: [PATCH][testsuite] Match symbol on address 0x0
- Authentication-results: sourceware.org; auth=none
- References: <1405066663-1395-1-git-send-email-yao at codesourcery dot com>
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