summaryrefslogtreecommitdiff
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
commitfb16b90083e20d30c299e00fd414a39b55163699 (patch)
tree11a0b44f3f822d8d6b0d5c2cdb0a96bfc840c73e
parenta40cbfa3c951ac0fcbdf8f98ab668beacca2b872 (diff)
downloadbinutils-fb16b90083e20d30c299e00fd414a39b55163699.tar.gz
binutils-fb16b90083e20d30c299e00fd414a39b55163699.tar.bz2
binutils-fb16b90083e20d30c299e00fd414a39b55163699.zip
2002-07-17 Michal Ludvig <michal@suse.cz>
* dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value. (update_context): Initialise cfa variable.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2cfi.c5
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 <michal@suse.cz>
+
+ * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
+ (update_context): Initialise cfa variable.
+
2002-07-17 Michael Snyder <msnyder@redhat.com>
* 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 ();