From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24082 invoked by alias); 23 Nov 2003 21:47:14 -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 24049 invoked from network); 23 Nov 2003 21:46:53 -0000 Received: from unknown (HELO localhost.redhat.com) (205.151.14.231) by sources.redhat.com with SMTP; 23 Nov 2003 21:46:53 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 58FB42B90 for ; Sun, 23 Nov 2003 16:46:19 -0500 (EST) Message-ID: <3FC12AAB.5000906@gnu.org> Date: Sun, 23 Nov 2003 21:47:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit] Eliminate frame_unwind_signed_register Content-Type: multipart/mixed; boundary="------------090603080102030409040306" X-SW-Source: 2003-11/txt/msg00500.txt.bz2 This is a multi-part message in MIME format. --------------090603080102030409040306 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 58 It's functionality is found elsewhere. committed, Andrew --------------090603080102030409040306 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 2594 2003-11-23 Andrew Cagney * frame.c (frame_unwind_signed_register): Delete function. * frame.h (frame_unwind_register_signed): Delete declaration. * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed. Index: frame.c =================================================================== RCS file: /cvs/src/src/gdb/frame.c,v retrieving revision 1.151 diff -u -r1.151 frame.c --- frame.c 23 Nov 2003 02:48:40 -0000 1.151 +++ frame.c 23 Nov 2003 21:39:48 -0000 @@ -664,15 +664,6 @@ } void -frame_unwind_signed_register (struct frame_info *frame, int regnum, - LONGEST *val) -{ - char buf[MAX_REGISTER_SIZE]; - frame_unwind_register (frame, regnum, buf); - (*val) = extract_signed_integer (buf, DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)); -} - -void frame_unwind_unsigned_register (struct frame_info *frame, int regnum, ULONGEST *val) { Index: frame.h =================================================================== RCS file: /cvs/src/src/gdb/frame.h,v retrieving revision 1.115 diff -u -r1.115 frame.h --- frame.h 23 Nov 2003 02:48:40 -0000 1.115 +++ frame.h 23 Nov 2003 21:40:02 -0000 @@ -408,10 +408,6 @@ /* Use frame_unwind_register_signed. */ -extern void frame_unwind_signed_register (struct frame_info *frame, - int regnum, LONGEST *val); - -/* Use frame_unwind_register_signed. */ extern void frame_unwind_unsigned_register (struct frame_info *frame, int regnum, ULONGEST *val); @@ -572,9 +568,7 @@ extern struct frame_info *block_innermost_frame (struct block *); -/* NOTE: cagney/2002-09-13: There is no need for this function. - Instead either of frame_unwind_signed_register() or - frame_unwind_unsigned_register() can be used. */ +/* NOTE: cagney/2002-09-13: There is no need for this function. */ extern CORE_ADDR deprecated_read_register_dummy (CORE_ADDR pc, CORE_ADDR fp, int); extern void generic_push_dummy_frame (void); Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.260 diff -u -r1.260 mips-tdep.c --- mips-tdep.c 23 Nov 2003 02:48:40 -0000 1.260 +++ mips-tdep.c 23 Nov 2003 21:40:48 -0000 @@ -1777,10 +1777,8 @@ if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), 0, 0)) { - LONGEST tmp; /* Always unwind the cooked PC register value. */ - frame_unwind_signed_register (frame, NUM_REGS + PC_REGNUM, &tmp); - saved_pc = tmp; + saved_pc = frame_unwind_register_signed (frame, NUM_REGS + PC_REGNUM); } else { --------------090603080102030409040306--