* dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
[deliverable/binutils-gdb.git] / gdb / dwarf2expr.c
index 40ce608731851e886396671911841c3216520340..214b371e569f083bdf9cf98a3cca120e299a4f58 100644 (file)
@@ -725,6 +725,12 @@ execute_stack_op (struct dwarf_expr_context *ctx,
          break;
 
        case DW_OP_GNU_addr_index:
+         op_ptr = safe_read_uleb128 (op_ptr, op_end, &uoffset);
+         result = (ctx->funcs->get_addr_index) (ctx->baton, uoffset);
+         result += ctx->offset;
+         result_val = value_from_ulongest (address_type, result);
+         break;
+       case DW_OP_GNU_const_index:
          op_ptr = safe_read_uleb128 (op_ptr, op_end, &uoffset);
          result = (ctx->funcs->get_addr_index) (ctx->baton, uoffset);
          result_val = value_from_ulongest (address_type, result);
This page took 0.023966 seconds and 4 git commands to generate.