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 Feb 5, 2008 10:22 AM, andrzej zaborowski <balrogg@gmail.com> wrote:
> As far as I understand it's still a change that requires implementing
> new bits in architecture code, because architectures don't know how to
> make bytecode for pseudo-registers right now.

That's right.  The suggested patch I posted doesn't show this, but the
way to do it would be to make it a gdbarch method with a predicate
indicating whether the architecture provides the method or not (an 'M'
entry in gdbarch.sh; search for "M -> " in there for docs), and then
have ax-gdb.c check for the presence of the method, use it if present,
and throw an error otherwise.  This would allow us to implement the
method only on the architectures on which some contributor was
motivated to implement it.

> Apart from little time I have zero knowledge about 95% of the
> architectures in gdb :(

Well, there are a lot of architectures.  I think many of our
contributors know only a few.


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