This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] dwarf2loc, guard against null
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jerome Guitton <guitton at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 17 Sep 2007 08:15:03 -0400
- Subject: Re: [RFA] dwarf2loc, guard against null
- References: <20070917120443.GA21276@adacore.com>
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