Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] dwarf2loc.c, loclist_read_variable, Assert frame not null
@ 2011-03-04 22:37 Michael Snyder
  2011-03-04 23:34 ` Ulrich Weigand
  2011-03-05  0:00 ` Pedro Alves
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Snyder @ 2011-03-04 22:37 UTC (permalink / raw)
  To: gdb-patches

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

Now, I've heard a rumor that frame-infos can never be null.

If that's true, then instead of this patch, we should just
delete the earlier check for null.

OK?



[-- Attachment #2: null5.txt --]
[-- Type: text/plain, Size: 790 bytes --]

2011-03-04  Michael Snyder  <msnyder@vmware.com>

	* dwarf2loc.c (loclist_read_variable): Assert frame not null.

Index: dwarf2loc.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2loc.c,v
retrieving revision 1.110
diff -u -p -u -p -r1.110 dwarf2loc.c
--- dwarf2loc.c	27 Feb 2011 00:01:12 -0000	1.110
+++ dwarf2loc.c	4 Mar 2011 22:34:24 -0000
@@ -2687,8 +2687,11 @@ loclist_read_variable (struct symbol *sy
       set_value_optimized_out (val, 1);
     }
   else
-    val = dwarf2_evaluate_loc_desc (SYMBOL_TYPE (symbol), frame, data, size,
-				    dlbaton->per_cu);
+    {
+      gdb_asert (frame);
+      val = dwarf2_evaluate_loc_desc (SYMBOL_TYPE (symbol), frame,
+				      data, size, dlbaton->per_cu);
+    }
 
   return val;
 }

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

end of thread, other threads:[~2011-03-05  0:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 22:37 [RFA] dwarf2loc.c, loclist_read_variable, Assert frame not null Michael Snyder
2011-03-04 23:34 ` Ulrich Weigand
2011-03-05  0:00 ` Pedro Alves
2011-03-05  0:12   ` Michael Snyder

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