aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.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/dwarf2loc.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/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c3
1 files changed, 2 insertions, 1 deletions
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))