This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] frame.c (find_frame_sal): Check return value of get_frame_function.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>, Michael Snyder <msnyder at vmware dot com>
- Date: Tue, 15 Mar 2011 16:53:53 +0000
- Subject: Re: [RFA] frame.c (find_frame_sal): Check return value of get_frame_function.
- References: <4D719288.6050301@vmware.com> <20110315162609.GM31264@adacore.com>
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