From: Jim Blandy Date: Fri, 21 May 2004 07:50:03 +0000 (+0000) Subject: * dwarf2expr.c (execute_stack_op): Add 'break' statements after X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99c87dab95747d380392a3698740507a21ad3236;p=binutils-gdb.git * dwarf2expr.c (execute_stack_op): Add 'break' statements after cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.) --- 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);