From: Jim Blandy <jimb@redhat.com>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: WIP: Register doco
Date: Tue, 23 Jul 2002 20:45:00 -0000 [thread overview]
Message-ID: <npr8ht3i2h.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <3D3DF608.8010403@ges.redhat.com>
Andrew Cagney <ac131313@ges.redhat.com> writes:
> So "hardware" is as problematic as "physical"? What you're telling me
> is that I should avoid all such terms, right?
I'm saying that they're unhelpful terms in drawing a distinction
between cooked and raw registers, and that a better approach would be
to provide examples of how the distinction allows GDB to cleanly
describe one or two well-known architectures.
In situations where the contrast being drawn is obvious, "hardware"
and "physical" are fine terms. For example, if one were writing about
how stubs return from exceptions they've trapped, one could talk about
the necessity to restore the values of the "hardware registers" from
the stub's working copy. There it's clear.
But in the present discussion, neither the raw and the cooked
registers are closer to the "hardware" --- they both describe entities
that have some reality in the "hardware". So the term isn't helpful.
It's a public placeholder for a private intuition. It lets the writer
think they've made their point, while leaving the reader in the dark.
> If this section needs an example then (given MarkK's observation about
> the i387) then either d10v's two stack pointers or the SH's bank
> registers. Neither of these are especially complicated.
But... but the IA-32's FP and MMX hair is, like, the canonical
motivation for the cooked/raw distinction. You've said repeatedly
that a GDB developer needs to understand this distinction. That makes
it a *good* example, right? I think it's one of the best ---
especially since it's something familiar to a lot more people than the
d10v and the SH.
next prev parent reply other threads:[~2002-07-24 3:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-19 17:31 Andrew Cagney
2002-07-19 20:11 ` Jim Blandy
2002-07-20 11:39 ` Andrew Cagney
2002-07-20 11:36 ` Jim Blandy
2002-07-20 13:41 ` Andrew Cagney
2002-07-20 15:26 ` Jim Blandy
2002-07-21 9:41 ` Andrew Cagney
2002-07-21 10:04 ` Daniel Jacobowitz
2002-07-22 9:38 ` Andrew Cagney
2002-07-22 10:30 ` Daniel Jacobowitz
2002-07-23 16:25 ` Jim Blandy
2002-07-23 17:34 ` Andrew Cagney
2002-07-23 20:45 ` Jim Blandy [this message]
2002-07-24 8:35 ` Andrew Cagney
2002-07-24 22:08 ` Jim Blandy
2002-07-25 8:13 ` Andrew Cagney
2002-07-23 21:17 ` Jim Blandy
2002-07-24 9:09 ` Andrew Cagney
2002-07-24 22:03 ` Jim Blandy
2002-07-25 8:11 ` Andrew Cagney
2002-07-22 14:39 ` Mark Kettenis
2002-07-22 14:41 ` Mark Kettenis
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=npr8ht3i2h.fsf@zwingli.cygnus.com \
--to=jimb@redhat.com \
--cc=ac131313@ges.redhat.com \
--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