2002-07-17 Michal Ludvig <michal@suse.cz>
authorMichal Ludvig <mludvig@suse.cz>
Fri, 19 Jul 2002 09:40:51 +0000 (09:40 +0000)
committerMichal Ludvig <mludvig@suse.cz>
Fri, 19 Jul 2002 09:40:51 +0000 (09:40 +0000)
* dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
(update_context): Initialise cfa variable.

gdb/ChangeLog
gdb/dwarf2cfi.c

index 8cdca4e..88a1c33 100644 (file)
@@ -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.  
index 82621ec..18782b1 100644 (file)
@@ -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 ();