From fb16b90083e20d30c299e00fd414a39b55163699 Mon Sep 17 00:00:00 2001 From: Michal Ludvig Date: Fri, 19 Jul 2002 09:40:51 +0000 Subject: [PATCH] 2002-07-17 Michal Ludvig * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value. (update_context): Initialise cfa variable. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2cfi.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8cdca4e1764..88a1c33f4f3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-07-17 Michal Ludvig + + * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value. + (update_context): Initialise cfa variable. + 2002-07-17 Michael Snyder * aix-thread.c: Shorten some long lines. 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 (); -- 2.30.2