This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 2/2] Support gcc-4.7 DW_OP_GNU_parameter_ref
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 14 Jun 2012 09:23:01 +0200
- Subject: Re: [patch 2/2] Support gcc-4.7 DW_OP_GNU_parameter_ref
- References: <20120614064848.GA13247@host2.jankratochvil.net>
On Thu, 14 Jun 2012 08:48:48 +0200, Jan Kratochvil wrote:
> --- a/gdb/dwarf2expr.c
> +++ b/gdb/dwarf2expr.c
> @@ -1392,6 +1392,21 @@ execute_stack_op (struct dwarf_expr_context *ctx,
> "or for DW_OP_breg*(0)+DW_OP_deref*"));
> }
>
> + case DW_OP_GNU_parameter_ref:
> + {
> + cu_offset offset;
Unused variable.
> + union call_site_parameter_u kind_u;
> +
> + kind_u.param_offset.cu_off = extract_unsigned_integer (op_ptr, 4,
> + byte_order);
> + op_ptr += 4;
> + ctx->funcs->push_dwarf_reg_entry_value (ctx,
> + CALL_SITE_PARAMETER_PARAM_OFFSET,
> + kind_u,
> + -1 /* deref_size */);
> + }
> + goto no_push;
Jan