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: [RFA] frame.c (find_frame_sal): Check return value of get_frame_function.


On Tuesday 15 March 2011 16:26:09, Joel Brobecker wrote:
> > 2011-03-04  Michael Snyder  <msnyder@vmware.com>
> > 
> >       * frame.c (find_frame_sal): Check return value of get_frame_function.
> 
> I think that the change is correct, but I'm not completely sure,
> so a second pair of eyes would be nice.
> 
> My thinking: It is entirely plausible that get_next_frame (frame)
> returns a frame with a PC for which there is no debugging info.
> In that case, it's the same as not having line info.

It would normally, but in this case, we've just found that
the next frame is an inlined function call.  Then it
certainly has debug info?  Otherwise, how would gdb know
it's an inlined function call?

-- 
Pedro Alves


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