Re: [RFC] Correct gdbserver register packets

Pierre Muller
2002-12-02T14:22:35Z

At 15:15 02/12/2002, Daniel Jacobowitz wrote:
>On Mon, Dec 02, 2002 at 11:44:31AM +0100, Andreas Schwab wrote:
>> Daniel Jacobowitz <drow@mvista.com> writes:
>>
>> |> Or else Andreas's patch to decrease the number of registers. Hmm,
>> |> probably doing it Andreas's way is better. I'll take care of this in
>> |> the morning.
>>
>> My way of fixing it is not complete, I get "Wrong sized register packet"
>> messages from gdbserver.
>
>Really? Oh, I suppose that gdbserver is receiving 31 registers back
>from GDB.
>
>Why is that happening? There are 31 registers in m68k_register_name
>but no remaining target implements the last two (did any obsolete
>target?) and the register packet appears to be sized for 29 registers.
>
>I'll investigate.

See regformats directory!
reg-m68k.dat define 31
fpcode and fpflags are not known to linux, but I don't know
for other targets...

Maybe we should add a new packet that would
give out the name and the format of all the registers that are sent
in the register packet.
This would be sent by the remote GDB program at
connexion and gdbserver would then
and use the result of that first packet
to check which register he connected GDB wants,
if we know them and if the format is correct.