FYI: handle DW_OP_call_frame_cfa in AX compiler

Pedro Alves pedro@codesourcery.com
Wed Feb 16 21:31:00 GMT 2011


On Wednesday 16 February 2011 20:18:34, Tom Tromey wrote:
> Here is a patch to implement compilation of DW_OP_call_frame_cfa to
> agent expressions.
> 
> Let me know what you think.

Looks good to me.  Thanks for doing this.

OOC, why the dwarf2_compile_ftype abstraction?  Are you working
on other changes where you'll pass down something else?

> It at least let collection.exp run here.  I'll do a full regression test
> against gdbserver sometime soon.

FYI, I often do "--directory=gdb.trace" when I want a quicker sanity
check than a full testrun.  Nothing outside that directory
generates/uses axs currently.

> +	      ax_const_l (expr, - fs.regs.cfa_offset);

No space after `-'.

-- 
Pedro Alves



More information about the Gdb-patches mailing list