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]

Re: RFA: PowerPC sim & GDB: use fixed register numbering


Andrew Cagney <cagney@gnu.org> writes:

> The old code, which did an under-the-covers call into gdb to map number -> name, was bad and definitly needed to be replaced.  The above though could still do with some work - too much on the magic of those numbers in gdb/sim-ppc.h :-(
> Anyway, lets first get the enum in place.


Since we've nailed the enum, what should we do about the sim/ppc?


What do you have in mind?

Something that uses the enum directly. Have a look at the other simulators that use the enum - they have a big switch doing a map.


Andrew

PS: I see old sim changes were accidently committed, I've reverted them.




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