This is the mail archive of the gdb@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: how to see DAR (data access register) on ppc using gdb 7.0.1 on Linux?


On 09/07/2012 02:26 PM, Stefan Puiu wrote:
> Hi,
> 
> I'm trying to debug a crash on our embedded Linux platform using:

> GNU gdb (GDB) 7.0.1

You can also find the address that caused a SIGSEGV by printing
$_siginfo (the siginfo_t associated with the signal).  Look for the
sig_fault/si_addr fields) after GDB catches the signal.  Doesn't work with
core files though, only live debugging.

For PPC, you'd need GDB 7.5 for that.

-- 
Pedro Alves


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