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

Nick Roberts nickrob@snap.net.nz
Thu Apr 24 01:48:00 GMT 2008


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

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



More information about the Gdb-patches mailing list