summaryrefslogtreecommitdiff
path: root/gdb/dwarf2cfi.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-07-19 09:40:51 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-07-19 09:40:51 +0000
commit66bb94eee4d5d7d51a99fb8b3db233ea10cd7b4a (patch)
tree9e2ed9a411596a651953eb5ae57e9855f298c260 /gdb/dwarf2cfi.c
parent650cc115fd1e36358506eea171396a5d53579cb1 (diff)
downloadgdb-66bb94eee4d5d7d51a99fb8b3db233ea10cd7b4a.tar.gz
2002-07-17 Michal Ludvig <michal@suse.cz>
* dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value. (update_context): Initialise cfa variable.
Diffstat (limited to 'gdb/dwarf2cfi.c')
-rw-r--r--gdb/dwarf2cfi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dwarf2cfi.c b/gdb/dwarf2cfi.c
index 82621ec0182..18782b16dc8 100644
--- a/gdb/dwarf2cfi.c
+++ b/gdb/dwarf2cfi.c
@@ -1227,7 +1227,8 @@ execute_stack_op (struct objfile *objfile,
case DW_OP_ne:
result = (LONGEST) first != (LONGEST) second;
break;
- default: /* This label is here just to avoid warning. */
+ default:
+ error ("execute_stack_op: Unknown DW_OP_ value");
break;
}
}
@@ -1271,7 +1272,7 @@ static void
update_context (struct context *context, struct frame_state *fs, int chain)
{
struct context *orig_context;
- CORE_ADDR cfa;
+ CORE_ADDR cfa = 0;
long i;
unwind_tmp_obstack_init ();