From: Tom Tromey Date: Thu, 12 May 2011 19:32:47 +0000 (+0000) Subject: * dwarf2expr.c (execute_stack_op) : Unconditionally X-Git-Tag: sid-snapshot-20110601~219 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b087e0edae4136e8cfcaa8e11c382d87eb3aebf4;p=thirdparty%2Fbinutils-gdb.git * dwarf2expr.c (execute_stack_op) : Unconditionally cast left-hand-side to unsigned. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d0cf7f3a88b..ab2ecde4171 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-05-12 Tom Tromey + + * dwarf2expr.c (execute_stack_op) : Unconditionally + cast left-hand-side to unsigned. + 2011-05-12 Tom Tromey PR gdb/12617: diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 226cb1d9495..0c0760b038c 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -979,7 +979,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, case DW_OP_shr: dwarf_require_integral (value_type (first)); dwarf_require_integral (value_type (second)); - if (value_type (first) == address_type) + if (!TYPE_UNSIGNED (value_type (first))) { struct type *utype = get_unsigned_type (ctx->gdbarch, value_type (first));