From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22178 invoked by alias); 5 Sep 2002 19:06:49 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22171 invoked from network); 5 Sep 2002 19:06:48 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 5 Sep 2002 19:06:48 -0000 Received: from reddwarf.sfbay.redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id LAA03175; Thu, 5 Sep 2002 11:57:26 -0700 (PDT) Received: (from msnyder@localhost) by reddwarf.sfbay.redhat.com (8.11.2/8.11.2) id g85J6jJ08701; Thu, 5 Sep 2002 12:06:45 -0700 Date: Thu, 05 Sep 2002 12:06:00 -0000 From: Michael Snyder Message-Id: <200209051906.g85J6jJ08701@reddwarf.sfbay.redhat.com> To: gdb-patches@sources.redhat.com Subject: [PATCH] upgrade arm_extract_struct_return to use new method. Cc: rearnsha@arm.com X-SW-Source: 2002-09/txt/msg00073.txt.bz2 2002-09-05 Michael Snyder * 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. */