This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Reconstructing corrupt stacks/patching frame pointers
- From: "Eric Cooper" <Eric dot Cooper at citrix dot com>
- To: <gdb at sourceware dot org>
- Date: Tue, 9 Dec 2008 15:27:32 -0800
- Subject: Reconstructing corrupt stacks/patching frame pointers
- References: <2108A3A691C70B41B22A8C5ED3725423024DA3F9@sjcpexch02.citrite.net>
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