* dwarf2expr.c (execute_stack_op): Add 'break' statements after
authorJim Blandy <jimb@codesourcery.com>
Fri, 21 May 2004 07:50:03 +0000 (07:50 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 21 May 2004 07:50:03 +0000 (07:50 +0000)
cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)

gdb/ChangeLog
gdb/dwarf2expr.c

index 887bcd529bdf60ce58c09d4a94db26b6bcb45445..d3e163135e184d62afe3a385e335fbe769d64dfd 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-21  Jim Blandy  <jimb@redhat.com>
+
+       * dwarf2expr.c (execute_stack_op): Add 'break' statements after
+       cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
+
 2004-05-20  Jim Blandy  <jimb@redhat.com>
 
        * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
index 50baced5f2e8d1c4ef232be52cb6633d55180cd3..294afa06c63c6213ad258ede26040e85e9ef682b 100644 (file)
@@ -575,6 +575,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
                break;
              case DW_OP_div:
                binop = BINOP_DIV;
+                break;
              case DW_OP_minus:
                binop = BINOP_SUB;
                break;
@@ -595,6 +596,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
                break;
              case DW_OP_shr:
                binop = BINOP_RSH;
+                break;
              case DW_OP_shra:
                binop = BINOP_RSH;
                val1 = value_from_longest (signed_address_type (), first);