From: Andrew Cagney <cagney@gnu.org>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Activate extract_struct_value_address for SPARC and UltraSPARC
Date: Sun, 11 Jan 2004 21:12:00 -0000 [thread overview]
Message-ID: <4001BC42.8030207@gnu.org> (raw)
In-Reply-To: <200401112048.i0BKm0rv004191@elgar.kettenis.dyndns.org>
> Andrews -Wunused-function message pointed out that this wasn't hooked
> up. So some of my previous patches were absolutely useless. Anyway,
> this corrects the problem, and hooks things up. No regressions in
> structs.exp on NetBSD/sparc and FreeBSD/sparc64.
Um,
> + set_gdbarch_extract_struct_value_address
> + (gdbarch, sparc32_extract_struct_value_address);
Is this one ever called?
> +/* Extract from REGCACHE, which contains the (raw) register state, the
> + address in which a function should return its structure value, as a
> + CORE_ADDR. */
> +
> +static CORE_ADDR
> +sparc64_extract_struct_value_address (struct regcache *regcache)
> +{
> + ULONGEST addr;
> +
> + regcache_cooked_read_unsigned (regcache, SPARC_O0_REGNUM, &addr);
> + return addr;
> +}
and does this work reliably?
Andrew
prev parent reply other threads:[~2004-01-11 21:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-11 20:48 Mark Kettenis
2004-01-11 21:12 ` Andrew Cagney [this message]
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=4001BC42.8030207@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@chello.nl \
/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