Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] dwarf2loc, guard against null
@ 2007-09-17 12:04 Jerome Guitton
  2007-09-17 12:15 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Jerome Guitton @ 2007-09-17 12:04 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]


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.




[-- Attachment #2: dwarf2loc.c.diff --]
[-- Type: text/x-diff, Size: 436 bytes --]

Index: dwarf2loc.c
===================================================================
--- dwarf2loc.c	(revision 14570)
+++ dwarf2loc.c	(working copy)
@@ -151,6 +151,9 @@ dwarf_expr_frame_base (void *baton, gdb_
 
   framefunc = get_frame_function (debaton->frame);
 
+  if (!framefunc)
+    error (_("No frame function."));
+
   if (SYMBOL_OPS (framefunc) == &dwarf2_loclist_funcs)
     {
       struct dwarf2_loclist_baton *symbaton;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-17 13:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 12:04 [RFA] dwarf2loc, guard against null Jerome Guitton
2007-09-17 12:15 ` Daniel Jacobowitz
2007-09-17 12:27   ` Jerome Guitton
2007-09-17 12:30     ` Daniel Jacobowitz
2007-09-17 13:10       ` Jerome Guitton
2007-09-17 13:20         ` Daniel Jacobowitz
2007-09-17 13:42           ` Jerome Guitton
2007-09-17 13:52             ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox