This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 2/2] Support gcc-4.7 DW_OP_GNU_parameter_ref


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]