This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 5/5] Stash frame id of current frame before stashing frame id for previous frame


On 11/02/2016 10:26 PM, Kevin Buettner wrote:

> I will first note that the frame id for frame has not been computed yet.  (This
> was verified by placing a breakpoint on compute_frame_id().)
> 
> The call to get_prev_frame() causes the the frame id to (eventually) be
> computed for the previous frame.  Here's a backtrace showing how we
> get there:
> 
>     at gdb/frame.c:496
>     at gdb/frame.c:1871
>     at gdb/frame.c:2045
>     at gdb/frame.c:2061
>     at gdb/frame.c:2303
>     at gdb/python/py-frame.c:381

Function names would make that backtrace soooo much easier to read.  :-)

> gdb/ChangeLog:
>     
>     	* frame.c (get_prev_frame): Stash frame id for current frame
>     	prior to computing frame id for previous frame.


I'm fine with this solution.  LGTM.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]