This is the mail archive of the
mailing list for the GDB project.
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