This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Fix implptr-optimized-out.exp fail in thumb mode
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Tue, 07 Oct 2014 16:35:12 +0100
- Subject: Re: [PATCH 2/2] Fix implptr-optimized-out.exp fail in thumb mode
- Authentication-results: sourceware.org; auth=none
- References: <1411951921-16168-1-git-send-email-yao at codesourcery dot com> <1411951921-16168-3-git-send-email-yao at codesourcery dot com>
On 09/29/2014 01:52 AM, Yao Qi wrote:
> Hi,
> I see the fail in gdb.dwarf2/implptr-optimized-out.exp in thumb mode
>
> (gdb) p p->f^M
> No symbol "p" in current context.^M
> (gdb) FAIL: gdb.dwarf2/implptr-optimized-out.exp: p p->f
>
> In thumb mode, the lsb of references to 'main' in the assembly
> (produced by dwarf assember) is set, so the generated debug
> information is incorrect.
>
> in this patch, we add a label main_label inside function main.
Hmm, I think I'm missing something. I'm not where this "main_label"
label is coming from?
Thanks,
Pedro Alves