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 17:38:05, Joel Brobecker wrote:
> > 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?
> 
> Indeed, I think you're right. inline_skipped_symbol shouldn't
> be returning a NULL symbol, as far as I can tell.  So should
> we just add a gdb_assert with a comment explaining why we
> expect sym to be non-NULL?

I think so.

-- 
Pedro Alves


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