From patchwork Sat May 17 19:20:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 1001 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx20.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 953063601D3 for ; Sat, 17 May 2014 12:20:58 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14314964) id 2654541BDB566; Sat, 17 May 2014 12:20:58 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx20.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx20.g.dreamhost.com (Postfix) with ESMTPS id 060D041BDB540 for ; Sat, 17 May 2014 12:20:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=DKsDqhHBQFTboZoczufr0s9yCy7Rd Fm3/jzakdsoN4YNdDGIkM2ydeeCJc3KlNOiB8tt5jAsnjjbg4c11aM3t9ZGM/BEC RFSX9QWg9vahVRh+jb35xDJylT92+JbWhAmGF19/5mlIHea+1OWOAEY4R71vIIkS KiXV0qShxJz8Gg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=O5JSgL3aJxUY2pFsRtGeTUqBQqA=; b=utE Nkyr3PIXcph3VX6Oh2S40QHPMKNjUNGjbBMK/5VQSS60ZvEYi5OndA1mJpXw2mMn DK0gKUYSSDRg6cRJ0nmIajjboi0yUuqs1sEUH30dPeqm6uaFrNpyIqK5dTqCLBjP QyRk+m1I/09zA1GLs5XxP1/XaWwzvZmX9i/7lMkY= Received: (qmail 17425 invoked by alias); 17 May 2014 19:20:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 17404 invoked by uid 89); 17 May 2014 19:20:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pb0-f45.google.com Received: from mail-pb0-f45.google.com (HELO mail-pb0-f45.google.com) (209.85.160.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 17 May 2014 19:20:53 +0000 Received: by mail-pb0-f45.google.com with SMTP id um1so4041611pbc.4 for ; Sat, 17 May 2014 12:20:51 -0700 (PDT) X-Received: by 10.69.10.164 with SMTP id eb4mr26983396pbd.35.1400354451595; Sat, 17 May 2014 12:20:51 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id av2sm21290474pbc.16.2014.05.17.12.20.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 May 2014 12:20:51 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [commit] progspace.c (remove_program_space): Delete, unused. Date: Sat, 17 May 2014 12:20:33 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in Hi. Per community rules, I have deleted remove_program_space as it is unused. 2014-05-17 Doug Evans * progspace.c (remove_program_space): Delete, unused. * progspace.h (remove_program_space): Ditto. diff --git a/gdb/progspace.c b/gdb/progspace.c index 14507ef..88f59f4 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -170,30 +170,6 @@ release_program_space (struct program_space *pspace) do_cleanups (old_chain); } -/* Unlinks PSPACE from the pspace list, and releases it. */ - -void -remove_program_space (struct program_space *pspace) -{ - struct program_space *ss, **ss_link; - - ss = program_spaces; - ss_link = &program_spaces; - while (ss) - { - if (ss != pspace) - { - ss_link = &ss->next; - ss = *ss_link; - continue; - } - - *ss_link = ss->next; - release_program_space (ss); - ss = *ss_link; - } -} - /* Copies program space SRC to DEST. Copies the main executable file, and the main symbol file. Returns DEST. */ diff --git a/gdb/progspace.h b/gdb/progspace.h index 4cd593a..08e04eb 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -236,9 +236,6 @@ extern struct program_space *current_program_space; pointer to the new object. */ extern struct program_space *add_program_space (struct address_space *aspace); -/* Release PSPACE and removes it from the pspace list. */ -extern void remove_program_space (struct program_space *pspace); - /* Returns the number of program spaces listed. */ extern int number_of_program_spaces (void);