From 99c87dab95747d380392a3698740507a21ad3236 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 21 May 2004 07:50:03 +0000 Subject: [PATCH] * dwarf2expr.c (execute_stack_op): Add 'break' statements after cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.) --- gdb/ChangeLog | 5 +++++ gdb/dwarf2expr.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 887bcd529bd..d3e163135e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-21 Jim Blandy + + * 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 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes. diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 50baced5f2e..294afa06c63 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); -- 2.30.2