This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] ppc: include register numbers in gdbarch_tdep structure.
> Though I do wonder if it was really necessary to move register
> numbers which are truly constant to the gdbarch_tdep struct. BTW,
> this wouldn't bother me so much if we could use inline functions
> in C.
Based on the pains I'm experiencing with going through trying to get
some MMX changes for x86 in a state where I can submit them, I suspect
it is the better of the alternatives.
The x86 has a mix and that is just confusing. I don't know what can
change and what can't change and what secret relationships there are
between the constants and variables.
On paper, it should be possible to describe the entire raw regcache
using constants. I'm finding that, in reality, until all the relevant
framework is fleshed out (eg my regcache breakage, everything
multi-arch) it isn't really possible. Sigh.
enjoy,
Andrew