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: setting cooked registers desirable feature for coredump analysis but results in error


Hello Dan,

On Mon, 07 Feb 2011 20:01:46 +0100, dan clark wrote:
> An interesting debug scenario occurs when either a stack is corrupted

the GDB `frame' command supports syntax `frame FRAMEADDR' and
`frame FRAMEADDR PCADDR' where FRAMEADDR should be $sp in the caller.
See the doc, this is exactly its purpose.  It behaved a bit erratically now to
me on x86_64.

If/as this is not a common task one can use `eu-readelf -n corefile'
(eu-readelf is readelf from elfutils) and patch the registers using hexedit,
IIRC I was doing to before.


Regards,
Jan


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