This is the mail archive of the gdb-patches@sources.redhat.com 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] |
mips_tdep could certainly gain a local tdep->fp0_regnum though.
Did you notice the references to FP0_REGNUM in mips-linux-tdep.c and mips-nat.c?. If we do as you suggest, an access method will need to be added to mips-tdep.h for getting at tdep->fp0_regnum (since you refuse to export the mips tdep struct). Also, all occurrences of FP0_REGNUM in mips-linux-tdep.c and mips-nat.c will need to be rewritten to use this access method.
I ignored everything that wasn't core. Such a rewrite goes on my to-do list.
Certainly all of this could be done, but the need to know the first floating point register number is something that's shared among a number of ports. Doesn't it makes sense to define (as has already been done) a common mechanism for determining this register number rather than letting each port develop ad hoc methods?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |