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: mcore registers


Can you post the output from "maint print registers"? If these registers are last, the stub can send back a short register packet


The pc is the last, not cr31 --

Doh!


(gdb) maint print registers

 cr31         63   63    252       4  int
 pc           64   64    256       4  int



longer packet back to the stub). It may also be possible to run length encode (phrase?) the "x" indicating that the the missing registers are not available.


I had planned on eventually implementing the run-length encoding (using the '*' symbol). All of the non-existent registers just get reported as containing zeroes, so RLL would compress this consistently. Maybe it's time to get busy on that. I was hoping for a fix that not only improves performance, but also accurately reflects how the mcore is actually built.

Ok. Note that GDB doesn't run length encode. Instead it tries to use the "P" packet. If not already, also look at the "T..." response to things like continue.


Andrew



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