[Crash-utility] crash on x86_64: how to dump arg registers?

Dave Anderson anderson at redhat.com
Wed Sep 3 11:10:50 UTC 2008


Paul Sanders wrote:
> Hello all,
> 
> I'm trying to get myself ramped to using crash on x86_64.
> 
> In x86_64 there is no register stack and function arguments aren't
> typically placed on the stack, therefore we aren't able to see the
> function arguments in the bt -f output.
> 
> Is there a trick to dumping out %rdi, %rsi, %rdx, etc?
> 
> I hope this isn't too lame of a question. I'm just getting my toes wet
> with x86_64 and kdump/crash.
> 
> Thanks in advance,
> 
> Paul Sanders
> SGI Global Product Support

James is right -- aside from the register dumps with each exception frame,
you're pretty much on your own.  You'll have to disassemble the functions
of interest from their last "known" value/location/frame, and following
where the register may be stored on the stack.  Sorry -- no tricks...

Dave




More information about the Crash-utility mailing list