This is the mail archive of the
mailing list for the GDB project.
Re: Setting registers
I just want to set the esp, eip and ebp registers and print backtrace.
Can i do so while debugging a core file?
On 6/15/07, Eli Zaretskii <email@example.com> wrote:
> Date: Fri, 15 Jun 2007 18:25:53 +0530
> From: Indira <firstname.lastname@example.org>
> Cc: email@example.com
> Yes I am debuggin a core file. We cant set registers while debuggin a core file?
No, you can't. The program is dead, all you have is the last snapshot
of its memory. Even if you could set registers (and other variables),
it would be of no practical use, since you cannot run the program.
All you can do is examine its memory and call stack.
Smile.... & Make others Smile :)