diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-21 07:50:03 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-21 07:50:03 +0000 |
commit | 99c87dab95747d380392a3698740507a21ad3236 (patch) | |
tree | 9d59452f63c29415e9c7d831573267ef6a8ffecc /gdb/dwarf2expr.c | |
parent | cd9172901c1faef312f18bb2d852a968ae1260dd (diff) | |
download | gdb-99c87dab95747d380392a3698740507a21ad3236.zip gdb-99c87dab95747d380392a3698740507a21ad3236.tar.gz gdb-99c87dab95747d380392a3698740507a21ad3236.tar.bz2 |
* dwarf2expr.c (execute_stack_op): Add 'break' statements after
cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |