From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: rearnsha@arm.com
Subject: [PATCH] upgrade arm_extract_struct_return to use new method.
Date: Thu, 05 Sep 2002 12:06:00 -0000 [thread overview]
Message-ID: <200209051906.g85J6jJ08701@reddwarf.sfbay.redhat.com> (raw)
2002-09-05 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_extract_return_value): Use new regcache method.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.71
diff -p -r1.71 arm-tdep.c
*** arm-tdep.c 5 Sep 2002 19:03:07 -0000 1.71
--- arm-tdep.c 5 Sep 2002 19:04:47 -0000
*************** arm_extract_return_value (struct type *t
*** 2283,2291 ****
the address in which a function should return its structure value. */
static CORE_ADDR
! arm_extract_struct_value_address (char *regbuf)
{
! return extract_address (regbuf, REGISTER_RAW_SIZE(ARM_A1_REGNUM));
}
/* Will a function return an aggregate type in memory or in a
--- 2283,2294 ----
the address in which a function should return its structure value. */
static CORE_ADDR
! arm_extract_struct_value_address (struct regcache *regcache)
{
! ULONGEST ret;
!
! regcache_cooked_read_unsigned (regcache, ARM_A1_REGNUM, &ret);
! return ret;
}
/* Will a function return an aggregate type in memory or in a
*************** arm_gdbarch_init (struct gdbarch_info in
*** 2933,2939 ****
set_gdbarch_deprecated_store_return_value (gdbarch, arm_store_return_value);
set_gdbarch_store_struct_return (gdbarch, arm_store_struct_return);
set_gdbarch_use_struct_convention (gdbarch, arm_use_struct_convention);
! set_gdbarch_deprecated_extract_struct_value_address (gdbarch,
arm_extract_struct_value_address);
/* Single stepping. */
--- 2936,2942 ----
set_gdbarch_deprecated_store_return_value (gdbarch, arm_store_return_value);
set_gdbarch_store_struct_return (gdbarch, arm_store_struct_return);
set_gdbarch_use_struct_convention (gdbarch, arm_use_struct_convention);
! set_gdbarch_extract_struct_value_address (gdbarch,
arm_extract_struct_value_address);
/* Single stepping. */
next reply other threads:[~2002-09-05 19:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 12:06 Michael Snyder [this message]
2002-09-06 1:09 ` Richard Earnshaw
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=200209051906.g85J6jJ08701@reddwarf.sfbay.redhat.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=rearnsha@arm.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