* dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
cast left-hand-side to unsigned.
This commit is contained in:
parent
8a9b8146fd
commit
b087e0edae
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-05-12 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
|
||||
cast left-hand-side to unsigned.
|
||||
|
||||
2011-05-12 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR gdb/12617:
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue