From: Andrew STUBBS <andrew.stubbs@st.com>
To: "Marcel Moolenaar" <marcel@cup.hp.com>,
"Daniel Jacobowitz" <drow@false.org>
Cc: GDB <gdb@sources.redhat.com>
Subject: Re: Invalid registers
Date: Tue, 12 Jul 2005 16:16:00 -0000 [thread overview]
Message-ID: <op.sts51lwfo669wz@terrorhawk.bri.st.com> (raw)
In-Reply-To: <94cbbbf6ad84e632126e7a0e59830425@cup.hp.com>
On Mon, 11 Jul 2005 19:47:01 +0100, Marcel Moolenaar <marcel@cup.hp.com>
wrote:
> Given that registers are available when a value has been supplied,
> it's logical to assume (a priori) that a register is unavailable
> when no value has been supplied. A register's valid "bit" allows
> for this since there are 2 states that indicate unavailability:
> One that indicates a temporary state (0) and one that indicates a
> permanent state (-1). The initial state of a register is the temporarily
> unavailable state, which triggers fetching the register from the
> target. The target can change the state to permanently unavailable
> or supply the value (it can also, theoretically at least, leave the
> state unmodified and not provide a value). Hence, the a priori
> assumption that registers are unavailable when no value has been
> supplied (i.e. when the valid "bit" is not 1) seems to yield good
> behaviour when implemented as such. I would say then that gdb knows
> when a value is not available.
Thanks, I did look at this before I posted, but I concluded that I was not
what I was looking for. I mean, how would the target know what frame you
were in?
I do not know what it means for a register to be invalid in the target.
Might it be because some registers are not available when, for example,
the FPU is disabled?
In any case, my target is always happy to supply registers.
Andrew Stubbs
next prev parent reply other threads:[~2005-07-12 16:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 15:42 Andrew STUBBS
2005-07-11 15:49 ` Daniel Jacobowitz
2005-07-11 18:47 ` Marcel Moolenaar
2005-07-11 18:51 ` Daniel Jacobowitz
2005-07-11 19:08 ` Marcel Moolenaar
2005-07-12 16:16 ` Andrew STUBBS [this message]
2005-07-12 17:19 ` Marcel Moolenaar
2005-07-12 16:07 ` Andrew STUBBS
2005-07-12 17:34 ` Daniel Jacobowitz
2005-07-13 15:13 ` Andrew STUBBS
2005-07-13 15:42 ` Daniel Jacobowitz
2005-07-13 16:16 ` Andrew STUBBS
2005-07-13 20:27 ` Daniel Jacobowitz
2005-07-14 9:36 ` Andrew STUBBS
2005-07-14 14:11 ` Daniel Jacobowitz
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=op.sts51lwfo669wz@terrorhawk.bri.st.com \
--to=andrew.stubbs@st.com \
--cc=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=marcel@cup.hp.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).