RE: [RFA 4/5] New port: CR16: gdbserver

Kaushik Phatak
2013-01-22T13:43:38Z

Hi Pedro,
Thanks for your feedback.

> No, this needs to be fixed. The .dat registers must agree with GDB's remote
> register set. Once that is fixed, you'll be able to put more registers
> in the "expedite" set

I am working on these points. From what I see, my cr16_regmap needs to be
4-byte aligned so that ptrace calls within linux-low.c can use these without
causing any I/O errors. The updated reg.dat file would not match in offset
to cr16_regmap, but would match gdb.
Some additional code would be needed to handle the padding and packing through
ptrace in the kernel. This would allow the correct register number to be
accessed which would match gdb as well as reg-cr16.dat.
Let me know if you have any thoughts on this.

Regards,
Kaushik