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] dwarf2loc, guard against null


On Mon, Sep 17, 2007 at 02:04:43PM +0200, Jerome Guitton wrote:
> 
> get_frame_function can return null; in this case, crash...
> 
> OK to apply?
> 
> 2007-09-17  Jerome Guitton  <guitton@adacore.com>
> 
> 	* dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.

I'm not sure - there must be another bug so it might be this should be
a gdb_assert instead.  The DW_AT_frame_base that brought us here came
from .debug_info inside an entry for a function.  So we must have
found the function at some point.  But we didn't find the function
this time - why not?

-- 
Daniel Jacobowitz
CodeSourcery


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