RFC: fix PR c++/14999

Joel Brobecker brobecker@adacore.com
Tue Jan 22 02:55:00 GMT 2013


> Can you try the appended instead?
> I am testing it here as well.

Thanks, Tom. I confirm your patch seems to be fixing the issue as well.

> diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
> index 2282feb..3688425 100644
> --- a/gdb/dwarf2loc.c
> +++ b/gdb/dwarf2loc.c
> @@ -2878,7 +2878,8 @@ dwarf2_compile_expr_to_ax (struct agent_expr *expr, struct axs_value *loc,
>  	    op_ptr = safe_read_sleb128 (op_ptr, op_end, &offset);
>  	    dwarf2_compile_expr_to_ax (expr, loc, arch, addr_size, datastart,
>  				       datastart + datalen, per_cu);
> -	    require_rvalue (expr, loc);
> +	    if (loc->kind == axs_lvalue_register)
> +	      require_rvalue (expr, loc);
>  
>  	    if (offset != 0)
>  	      {

-- 
Joel



More information about the Gdb-patches mailing list