--- a/dwarf2loc.c +++ b/dwarf2loc.c @@ -2929,7 +2929,7 @@ dwarf2_compile_expr_to_ax (struct agent_ if (op == DW_OP_deref_size) size = *op_ptr++; else - size = addr_size; + size = addr_size_bits; switch (size) {