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] Disallow pseudo-registers in agent expression.


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.


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