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] Fix gdb.dwarf2/dwz.exp for thumb mode


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 (éå)


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