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

Nick Roberts
2008-04-24T00:40:57Z

> > If you want to know which frame the varobj is associated with GDB
> > should supply some unique opaque identifier, and then the IDE can
> > use that to show the frame number in a tooltip or wherever.
>
> Do you mean use something like uuidgen to associate a key with a frame
> and output that as a field for a variable object?

Actually it just needs to be a non-zero value for frames in which a varobj is
created. Perhaps a member of struct frame_id, int varobj_frame say, which
increments when a varobj is created in a new frame. This could also then be
used to see if a varobj has gone out of scope to avoid the ambiguities Jim
Blandy talked about from using frame_find_by_id.

Perhaps this is what you are suggesting, anyway.