aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2expr.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 887bcd5..d3e1631 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 50baced..294afa0 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -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);