diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2loc.c | 3 | ||||
-rw-r--r-- | gdb/stack.c | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bcad138..eb5ba79 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> + Fix compatibility with older GCCs. + * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter. + * stack.c (read_frame_arg): Initialize val_deref. + +2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> + Entry values NEWS entries, DWARF disassembly support. * NEWS: New entry values entry. (set print entry-values, show print entry-values) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 52fda27..7eb8d8a 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -833,7 +833,8 @@ dwarf_expr_reg_to_entry_parameter (struct frame_info *frame, int dwarf_reg, int iparams; struct value *val; struct dwarf2_locexpr_baton *dwarf_block; - struct call_site_parameter *parameter; + /* Initialize it just to avoid a GCC false warning. */ + struct call_site_parameter *parameter = NULL; CORE_ADDR target_addr; if (gdbarch != frame_unwind_arch (frame)) diff --git a/gdb/stack.c b/gdb/stack.c index b01dc1c..953d3bd 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -350,7 +350,8 @@ read_frame_arg (struct symbol *sym, struct frame_info *frame, if (!value_optimized_out (val) && value_available_contents_eq (val, 0, entryval, 0, len)) { - struct value *val_deref, *entryval_deref; + /* Initialize it just to avoid a GCC false warning. */ + struct value *val_deref = NULL, *entryval_deref; /* DW_AT_GNU_call_site_value does match with the current value. If it is a reference still try to verify if |