This is the mail archive of the gdb@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]

Re: register_offset_hack() vs REGISTER_BYTE()



For MIPS register numbers in [0, NUM_REGS), I'm going to make
mips_register_virtual_type() always return a type whose size is the same as
that currently returned by mips_register_raw_size().

Yes!!! That should have always been that way.


 I'll introduce pseudo
registers for those that actually need different virtual sizes.  (I've
turned mips o32 floating point registers into pseudo registers already and
it seems to work...)

Yep.


This'll allow me to eliminate the MIPS REGISTER_BYTE and REGISTER_RAW_SIZE
definitions.  Plus some other stuff too.  E.g, I've already gotten rid of
mips_register_convert_to_type() and mips_register_convert_from_type().  I
think mips_register_convert_to_virtual() and mips_register_convert_to_raw()
will end up going away too.

Don't stop there. It should be possible to trim it down to something like: - register_type - num_regs - num_pseudo_regs - register_name (looking at the d10v I've a few more to eliminate).

This means that a huge chunk of nastiness can finally be expunged from GDB. Ya!

Andrew



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