how to see DAR (data access register) on ppc using gdb 7.0.1 on Linux?

Pedro Alves palves@redhat.com
Fri Sep 7 17:12:00 GMT 2012


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



More information about the Gdb mailing list