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

Re: Proposal for handling large numbers of registers


>> So I'm considering importing the idea of "register classes" from
>> GCC.  GCC uses the class idea to guide allocation and instruction
>> selection, but we don't even need that much; just define the names
>> of the classes and which registers belong to each.

> It would be nice if one could just cut the register class
> definitions from gcc tm.h and paste them into gdb tm.h.

I'm not sure that a compilers notion of register classes make sense
for debugging and vice versa.  For debugging, broad categories like
"integer registers", "floating point registers", "system registers"
seem to be most appropriate; while compilers think of classes like
"registers that can be used for indexing", "special register used
for integer divide instructions", etc.

        --jtc

-- 
J.T. Conklin
RedBack Networks

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