summaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-05-12 19:32:47 +0000
committerTom Tromey <tromey@redhat.com>2011-05-12 19:32:47 +0000
commitb087e0edae4136e8cfcaa8e11c382d87eb3aebf4 (patch)
tree4fa6bdf27378a9de8d9b55ba886555f2c5898530 /gdb/dwarf2expr.c
parent8a9b8146fd539229c51c6a4e5a4f682df2a630b0 (diff)
downloadbinutils-gdb-b087e0edae4136e8cfcaa8e11c382d87eb3aebf4.tar.gz
* dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
cast left-hand-side to unsigned.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r--gdb/dwarf2expr.c2
1 files changed, 1 insertions, 1 deletions
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));