Re: [PATCH] Disallow pseudo-registers in agent expression.

andrzej zaborowski
2008-01-28T23:51:53Z

On 27/01/2008, Jim Blandy <jimb@red-bean.com> wrote:
> On some targets, all the user-visible registers are pseudo-registers.
> What we need is a gdbarch method (optional) that the tracepoint code
> could call, passing it a struct agent_expr and a pseudo-register
> number, to have the architecture code append the appropriate bytecodes
> to access that register.

That's ofcourse doable but sounds tough and bug-prone. The mapping of
numbers to raw registers is to some extent obvious and unlikely to
change, while the pseudo-registers may change with gdb version so the
target has more gdb version dependence.

Independently of that there's currenly a failed assertion so the
target can't do anything if a pseudo-register is used.