This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Prints the frame id when target stops
On Thu, 2007-01-18 at 01:14 +0300, Vladimir Prus wrote:
> On Thursday 18 January 2007 00:59, FrÃdÃric Riss wrote:
> > If you just want to cache the result of -stack-list-frames, then you'd
> > have to edit out the addr field which contains the frame's PC for the
> > top frame... not very nice.
>
> Or introduce 'struct cached_result_of_stack_list_frames' that
> can contain whatever I like and which can be conveniently edited.
>
> You've actually pointed a nice problem -- if frontend avoid -stack-list-frames
> when frame id did not change, it will have stale address of the top frame too.
Well, the frontend might not care about the exact PC (which it'll get
anyway in the stop reason? can't remember), or it can request only the
top frame which is basically free.
Fred.