This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH/i386newframe] Add asssertion to CFI frame unwinder
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 29 May 2003 18:02:17 +0200 (CEST)
- Subject: [PATCH/i386newframe] Add asssertion to CFI frame unwinder
This assertion can unfortunately be triggered. Don't know how to fix
the bug yet, but this makes clear there is a bug.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* dwarf-frame.c (dwarf2_frame_cache): Assert that we have a FDE.
Index: dwarf-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/Attic/dwarf-frame.c,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 dwarf-frame.c
--- dwarf-frame.c 23 May 2003 20:18:32 -0000 1.1.2.6
+++ dwarf-frame.c 29 May 2003 15:47:12 -0000
@@ -483,6 +483,7 @@ dwarf2_frame_cache (struct frame_info *n
/* Find the correct FDE. */
fde = dwarf2_frame_find_fde (&fs->pc);
+ gdb_assert (fde != NULL);
/* Extract any interesting information from the CIE. */
fs->data_align = fde->cie->data_alignment_factor;