From: Mark Kettenis <kettenis@chello.nl>
To: gdb@sources.redhat.com
Subject: RFC: Variables in blocks of registers
Date: Sat, 01 Feb 2003 14:48:00 -0000 [thread overview]
Message-ID: <200302011448.h11EmCkP001176@elgar.kettenis.dyndns.org> (raw)
On my i386-unknown-freebsd4.7 system, various tests in
gdb.base/store.exp fail. The reason is related to the problem
described in tdep/214; register variables that don't fit in a single
variable. GDB assumes that such variables are stored in consecutive
registers (according to its own register numbering scheme), which
defenitely isn't what GCC uses on the i386.
I'm looking into the suggestion Daniel made in tdep/214; teaching GDB
about the order in which GCC allocates registers. There are several
caveats though:
* While GCC allocates its registers in a particular order right now,
and always allocates blocks of consecutive registers, there is no
guarantee that it will continue to do so.
* I have no idea what other compilers do. If GDB's register numbering
was chosen to match for example the System V compiler, teaching GDB
GCC's register ordering will cause regressions on system that use
it. We might play tricks with gcc_compiled of course.
Since AFAIK GDB's internal register ordering is still not decoupled
from the remote interface, I propose to add a new multi-arch function
"next_regnum" which returns the next register to look in based on the
register number passed to it as an argument.
Comments?
Mark
next reply other threads:[~2003-02-01 14:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-01 14:48 Mark Kettenis [this message]
2003-02-01 15:48 ` Andrew Cagney
2003-02-01 17:09 ` Daniel Jacobowitz
2003-02-01 20:45 ` Andrew Cagney
2003-02-02 16:13 ` Mark Kettenis
2003-02-02 5:21 ` Daniel Jacobowitz
2003-02-02 16:52 ` Andrew Cagney
2003-02-02 16:27 ` Daniel Jacobowitz
2003-02-04 2:31 ` Jim Blandy
2003-02-04 4:07 ` Daniel Berlin
2003-02-02 15:33 ` Daniel Berlin
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=200302011448.h11EmCkP001176@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=gdb@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