aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-08-26 03:07:29 +0000
committerDaniel Jacobowitz <drow@false.org>2003-08-26 03:07:29 +0000
commit4ae9ee8e684e466b2418c3821cc8652b6b0cd253 (patch)
tree67027443ff7816eb8341ae26b49995b85284e650 /gdb
parent0dee3be061adcc0cd85e0f3d063dcc80d65c0b1e (diff)
downloadgdb-4ae9ee8e684e466b2418c3821cc8652b6b0cd253.zip
gdb-4ae9ee8e684e466b2418c3821cc8652b6b0cd253.tar.gz
gdb-4ae9ee8e684e466b2418c3821cc8652b6b0cd253.tar.bz2
PR java/1322
* dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are available before calling SECT_OFF_TEXT.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/dwarf2-frame.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ee1ed41..f03e1f9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-25 Daniel Jacobowitz <drow@mvista.com>
+
+ PR java/1322
+ * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
+ available before calling SECT_OFF_TEXT.
+
2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
* ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index c40726a..9b23841 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -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