[PATCH] -stack-info-frame/-stack-list-frames

Nick Roberts nickrob@snap.net.nz
Wed Apr 23 06:03:00 GMT 2008


 > > Here's a patch to add the frame address to the output of -stack-info-frame
 > > and -stack-list-frames and async output when execution stops.  It also
 > > outputs the source language for -stack-info-frame, these change making it
 > > more like "info frame":
 > 
 > Could you first clarify that is the purpose of said fields -- especially
 > frame address?

The frame address is probably of more interest than the pc address, at least
for frames other than the current one.  If the call stack includes the frame
address for each frame and the watch window gives the variable's address
then it is possible to infer to which frame that variable belongs.  In any
case, the extra field comes at almost no cost and a frontend can choose to
ignore it.

-- 
Nick                                           http://www.inet.net.nz/~nickrob



More information about the Gdb-patches mailing list