From: Richard Henderson <rth@twiddle.net>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] better alpha_register_virtual_type
Date: Mon, 02 Jun 2003 16:43:00 -0000 [thread overview]
Message-ID: <20030602164305.GD9425@twiddle.net> (raw)
In-Reply-To: <20030602163036.GA7419@nevyn.them.org>
On Mon, Jun 02, 2003 at 12:30:36PM -0400, Daniel Jacobowitz wrote:
> Yes. I was a little surprised by the void_data_ptr/void_func_ptr bit,
> but I see that d10v does the same thing, so it must be right :)
>
> Hmm, I'm not sure. Any particular reason for this patch?
Well, the void_func_ptr bit is nice because "info r" yields
pc 0x12000053c 0x12000053c <main+16>
The void_data_ptr bits I think just document which registers
are ABI mandated to contain pointer values all of the time.
Actually, I have a related question here. Something that I
didn't notice earlier is that d10v is using register_type,
not register_virtual_type. Looking at the guts of regcache.c,
it would appear that the later is deprecated, since not
having a register_type hook (among other things) results in
legacy_p being set.
I thought it obvious to rename my existing hook, but that changes
the behaviour of "info r" -- I no longer get the pc decoded, and
indeed "ptype $pc" once again yields int64_t.
Is this a bug elsewhere in gdb, or what?
Oh, and wrt regcache's legacy_p, it seems to want you to implement
the pseudo_register_{read,write} hooks, even if the target doesn't
have any. But nevertheless d10v doesn't implement the hooks.
Perhaps the predicates should be modified to notice that there are
no pseudos defined?
r~
next prev parent reply other threads:[~2003-06-02 16:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 5:04 Richard Henderson
2003-06-02 16:30 ` Daniel Jacobowitz
2003-06-02 16:43 ` Richard Henderson [this message]
2003-06-02 17:09 ` Daniel Jacobowitz
2003-06-02 19:06 ` Andrew Cagney
2003-06-02 22:39 ` Richard Henderson
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=20030602164305.GD9425@twiddle.net \
--to=rth@twiddle.net \
--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