This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


 > > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]