How can GDB/MI give the current frame (was Re: Changing "info frame" output?)

Nick Roberts nickrob@snap.net.nz
Fri Nov 5 19:53:00 GMT 2004


> What exactly does EMACS use?  Sigh!

Very little. Just the address, procedure name, filename and line no. (if
available). I used the command "frame" initially, but its output wasn't as
consistent.

 > Start a new thread (I don't know why I missed it).  My only memory in 
 > this area is that there needs to be both a light-weight and heavy weight 
 > frame info call (info frame is heavy weight - it forces a full frame 
 > unwind).

It sounds like all I would need is the lightweight call via MI. I called `my
command' "-stack-info-frame", after looking at the GDB manual, and out of
ignorance. "-stack-frame" might be more appropriate.

Nick



More information about the Gdb mailing list