This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Setting registers
> Date: Fri, 15 Jun 2007 18:25:53 +0530
> From: Indira <yoursindu@gmail.com>
> Cc: gdb@sourceware.org
>
> 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.