2011-03-04 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 7 Mar 2011 20:06:12 +0000 (20:06 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 7 Mar 2011 20:06:12 +0000 (20:06 +0000)
* dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.

gdb/ChangeLog
gdb/dwarf2loc.c

index 6cb27eed81c020792848d0310e2d3764e54c28d9..ebf6e7489a4e0b8861fd6285d3b03173a2305eda 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-06  Michael Snyder  <msnyder@vmware.com>
 
+       * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
+
        * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
 
        * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
index e516dfa0188cd473a59a0fe00c65b69204940cd7..0c4d834f6484db1b239b55f7dc4b384423f1ef51 100644 (file)
@@ -976,6 +976,7 @@ indirect_pieced_value (struct value *value)
   frame = get_selected_frame (_("No frame selected."));
   byte_offset = value_as_address (value);
 
+  gdb_assert (piece);
   baton = dwarf2_fetch_die_location_block (piece->v.ptr.die, c->per_cu,
                                           get_frame_address_in_block_wrapper,
                                           frame);