Setting registers

Indira yoursindu@gmail.com
Mon Jun 18 12:01:00 GMT 2007


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 <eliz@gnu.org> wrote:
> > 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.
>


-- 
Indu :)
Smile.... & Make others Smile :)



More information about the Gdb mailing list