[RFC] Prints the frame id when target stops

Nick Roberts nickrob@snap.net.nz
Thu Jan 18 21:13:00 GMT 2007


 > > More recently I looked at Apple's approach which seems to just add a hook
 > > in select_frame:
 > > 
 > > http://sourceware.org/ml/gdb-patches/2007-01/msg00037.html
 > 
 > I think that's actually their solution to a different problem than this
 > one.

They have two hooks; the above one is just to see if the frame has changed and
tells you if the locals window needs updating, for example.  In the example you
give, I think the frame has not changed but the stack has.  They have another
hook for detecting when the stack has changed which gets set in return_command
and normal_stop.  This latter location uses frame_id_eq so maybe it will fail
for your example (Perhaps it works for Apple, if they have their own unwinder,
although at this point I don't really know what I'm talking about).


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



More information about the Gdb-patches mailing list