aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-10-09 20:57:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-10-09 20:57:03 +0000
commit509f0fd9410d9394d0a6e2fa4ef80e08de5598b5 (patch)
tree669cd1b34654b2ef5e8370a0ab350573736d7627 /gdb/stack.c
parente1b16eb466b879439f655b276bdb4c86b113e425 (diff)
downloadgdb-509f0fd9410d9394d0a6e2fa4ef80e08de5598b5.zip
gdb-509f0fd9410d9394d0a6e2fa4ef80e08de5598b5.tar.gz
gdb-509f0fd9410d9394d0a6e2fa4ef80e08de5598b5.tar.bz2
gdb/
Fix compatibility with older GCCs. * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter. * stack.c (read_frame_arg): Initialize val_deref.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c3
1 files changed, 2 insertions, 1 deletions
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