PR java/1322

* dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
	available before calling SECT_OFF_TEXT.
This commit is contained in:
Daniel Jacobowitz
2003-08-26 03:07:29 +00:00
parent 0dee3be061
commit 4ae9ee8e68
2 changed files with 12 additions and 2 deletions

View File

@@ -1024,9 +1024,13 @@ dwarf2_frame_find_fde (CORE_ADDR *pc)
struct dwarf2_fde *fde;
CORE_ADDR offset;
offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
fde = objfile_data (objfile, dwarf2_frame_data);
if (fde == NULL)
continue;
gdb_assert (objfile->section_offsets);
offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
while (fde)
{
if (*pc >= fde->initial_location + offset