bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pop stack frame in gdb


From: Manish Godara
Subject: pop stack frame in gdb
Date: Sun, 25 Feb 2001 00:17:30 -0800

Hi,

I have used Sun's dbx in the past and I'm now starting to gdb.  I
was wondering if someone can point out equivalent commands in
gdb - fix and pop.

dbx allows me to pop off a stack frame and the control goes back to
the calling function _before_ the call was made.  So now if I
step through I'll be into the same function which I popped off.  I
find this useful with some functions when you realize that you've
missed the bug and want to go back and examine it more carefully.

Another command in dbx is fix - this will allow me to modify the
image at run time.  While I'm debuggin the program if I spot an
error I can modify the source an call "fix xyz.c" and it will recompile
the file and execute the new code (without restarting the program).

I tried looking at gdb commands but could not find any equivalent.  I
find it har to believe that such feature are not present it gdb.  I
must have missed something in the manual.  Can someone please point
them out?

thanks,
manish




reply via email to

[Prev in Thread] Current Thread [Next in Thread]