From: Michael Snyder Date: Mon, 7 Mar 2011 20:06:12 +0000 (+0000) Subject: 2011-03-04 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0e40094f8def7802af967d1fa5a850b2618fb84;p=binutils-gdb.git 2011-03-04 Michael Snyder * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6cb27eed81c..ebf6e7489a4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-06 Michael Snyder + * 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. diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index e516dfa0188..0c4d834f648 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -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);