From: LaPonsey Brian-ra4951 <Brian.Laponsey@motorola.com>
Cc: gdb-patches@sources.redhat.com
Subject: RE: mcore registers
Date: Tue, 30 Sep 2003 08:21:00 -0000 [thread overview]
Message-ID: <15BB35FC418BD511868500D0B7B916B108A35018@zuk07exm02.sps.mot.com> (raw)
> 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 --
(gdb) maint print registers
Name Nr Rel Offset Size Type
r0 0 0 0 4 int
... (snip) ...
r15 15 15 60 4 int
ar0 16 16 64 4 int
... (snip) ...
ar15 31 31 124 4 int
psr 32 32 128 4 int
vbr 33 33 132 4 int
epsr 34 34 136 4 int
fpsr 35 35 140 4 int
epc 36 36 144 4 int
fpc 37 37 148 4 int
ss0 38 38 152 4 int
ss1 39 39 156 4 int
ss2 40 40 160 4 int
ss3 41 41 164 4 int
ss4 42 42 168 4 int
gcr 43 43 172 4 int
gsr 44 44 176 4 int
cr13 45 45 180 4 int
... (snip)
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.
> If GDB, without other changes, dropped those registers, compatibility
> with existing stubs would be broken.
OK. I know of only three tools that talk to mcore using the remote serial protocol, and all parties involved say that patching gdb is OK. But there may be others out there, as you point out, so it's not possible to guarantee that everybody will stay happy. If we can't fix gdb, then I'll just get busy and program around the problem.
Brian
next reply other threads:[~2003-09-30 8:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-30 8:21 LaPonsey Brian-ra4951 [this message]
2003-09-30 14:46 ` Andrew Cagney
2003-09-30 15:34 ` Paul Koning
2003-09-30 15:40 ` Andrew Cagney
-- strict thread matches above, loose matches on Subject: below --
2003-09-30 15:22 LaPonsey Brian-ra4951
2003-09-29 15:17 LaPonsey Brian-ra4951
2003-09-29 17:25 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15BB35FC418BD511868500D0B7B916B108A35018@zuk07exm02.sps.mot.com \
--to=brian.laponsey@motorola.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox