> : a) change struct pt_regs and all associated macros and functions
> I like this option the best. I like
> : b) fake the values of zero (always 0 anyway) and k0,k1
> less, but if $0 and $27 and $26 never change, then it would be
You need quite fancy routines if you want to save ALL general purpose
registers. That works only if you use an additional register, eg.
the "linked address register". Which again destroys that register.
GDB wants to have all registers in a stackframe - but that's impossible ...