Reconstructing corrupt stacks/patching frame pointers
Eric Cooper
Eric.Cooper@citrix.com
Tue Dec 9 23:28:00 GMT 2008
Hello,
I have a kernel core dump with a corrupt stack and I can identify the stack location that is corrupted and what it should be and I want to write the correct frame pointer to the stack so that bt and frame x work. I have tried that using the "set" command and it says:
kvm_write not implemented for dead kernels.
I see this code is in kvm-fbsd.c (I am using BSD) and I have hacked around a little bit to allow the write but ultimately it fails on writes to /dev/kmem. Is there a reasonable way to do what I want to achieve?
Thanks in advance,
Eric
More information about the Gdb
mailing list