From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7167 invoked by alias); 1 Feb 2013 19:59:26 -0000 Received: (qmail 7155 invoked by uid 22791); 1 Feb 2013 19:59:24 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Feb 2013 19:59:11 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r11JxA9p011588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Feb 2013 14:59:10 -0500 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r11Jx9xl027135 for ; Fri, 1 Feb 2013 14:59:10 -0500 Subject: [PATCH] Garbage collect deprecated_pc_in_call_dummy To: gdb-patches@sourceware.org From: Pedro Alves Date: Fri, 01 Feb 2013 19:59:00 -0000 Message-ID: <20130201195909.27717.68593.stgit@brno.lan> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00023.txt.bz2 I noticed there are no users of deprecated_pc_in_call_dummy left in the tree. The last user was ARM. Usage removed here: http://sourceware.org/ml/gdb-patches/2010-03/msg00820.html This deletes the function. Applied. 2013-02-01 Pedro Alves * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function. * frame.h (deprecated_pc_in_call_dummy): Delete declaration. --- gdb/dummy-frame.c | 34 ---------------------------------- gdb/frame.h | 2 -- 2 files changed, 36 deletions(-) diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index 12310f8..390a6d8 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -47,40 +47,6 @@ struct dummy_frame static struct dummy_frame *dummy_frame_stack = NULL; -/* Function: deprecated_pc_in_call_dummy (pc) - - Return non-zero if the PC falls in a dummy frame created by gdb for - an inferior call. The code below which allows gdbarch_decr_pc_after_break - is for infrun.c, which may give the function a PC without that - subtracted out. - - FIXME: cagney/2002-11-23: This is silly. Surely "infrun.c" can - figure out what the real PC (as in the resume address) is BEFORE - calling this function. - - NOTE: cagney/2004-08-02: I'm pretty sure that, with the introduction of - infrun.c:adjust_pc_after_break (thanks), this function is now - always called with a correctly adjusted PC! - - NOTE: cagney/2004-08-02: Code should not need to call this. */ - -int -deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc) -{ - struct dummy_frame *dummyframe; - - for (dummyframe = dummy_frame_stack; - dummyframe != NULL; - dummyframe = dummyframe->next) - { - if ((pc >= dummyframe->id.code_addr) - && (pc <= dummyframe->id.code_addr - + gdbarch_decr_pc_after_break (gdbarch))) - return 1; - } - return 0; -} - /* Push the caller's state, along with the dummy frame info, onto the dummy-frame stack. */ diff --git a/gdb/frame.h b/gdb/frame.h index e3c6d91..31b9cb7 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -670,8 +670,6 @@ extern void print_frame_info (struct frame_info *, int print_level, extern struct frame_info *block_innermost_frame (const struct block *); -extern int deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc); - extern int deprecated_frame_register_read (struct frame_info *frame, int regnum, gdb_byte *buf);