This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode
- From: Yao Qi <yao at codesourcery dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 15 Sep 2014 10:04:08 +0800
- Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode
- Authentication-results: sourceware.org; auth=none
- References: <87siju7816 dot fsf at igel dot home> <87bnqil1bb dot fsf at codesourcery dot com> <87ha0a6x95 dot fsf at igel dot home>
Andreas Schwab <schwab@linux-m68k.org> writes:
> (gdb) p main_label
> $1 = {<text variable, no debug info>} 0x100004e0 <.main+12>
How about getting the offset by 'p main_label - main'? It also fixes the
zero-offset problem you pointed out in another mail.
--
Yao (éå)