From: Andrew STUBBS <andrew.stubbs@st.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [PATCH][SH] invalid registers
Date: Mon, 03 Apr 2006 12:59:00 -0000 [thread overview]
Message-ID: <44311B95.2040701@st.com> (raw)
In-Reply-To: <20060330171503.GJ32409@nevyn.them.org>
Daniel Jacobowitz wrote:
> This is OK. Only S/390 uses the frame_init_reg hook this way today,
> but it seems sensible. But please wait a day or two in case anyone has
> comments on the downside.
Hmmm, perhaps that ought to be fixed. I don't believe all those target
really *know* what the value of all registers is in every frame.
> The downside is that you can't do this:
>
> (gdb) break *abort
> (gdb) continue
> ...
> (gdb) up
> (gdb) info registers
>
> Instead, you have to look at the registers while you're in the bottom
> frame (i.e. abort) instead of the aborting function.
In your example _we_ know that the values are real, but the debugger
does not, and, in my opinion, should not present them as if it does.
> Would it be more useful if GDB could output "0x40000000 (may be
> clobbered)" somehow in info regs for DWARF2_FRAME_REG_UNDEFINED?
> But, not a big deal either way.
Yes, that might be a suitable compromise, but not for
DWARF2_FRAME_REG_UNDEFINED - that value really means it when it comes
from dwarf. Perhaps another value.
In any case, a 'day or two' has passed and nobody has said anything. Am
I OK to commit this?
Andrew
next prev parent reply other threads:[~2006-04-03 12:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 17:09 Andrew STUBBS
2006-03-30 20:52 ` Daniel Jacobowitz
2006-04-03 12:59 ` Andrew STUBBS [this message]
2006-04-03 13:03 ` Daniel Jacobowitz
2006-04-03 14:33 ` Andrew STUBBS
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=44311B95.2040701@st.com \
--to=andrew.stubbs@st.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