From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62012 invoked by alias); 11 Apr 2017 23:56:36 -0000 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 Received: (qmail 62001 invoked by uid 89); 11 Apr 2017 23:56:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Apr 2017 23:56:34 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8B998A329E for ; Tue, 11 Apr 2017 23:51:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8B998A329E Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8B998A329E Received: from cascais.lan (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F68817C3C for ; Tue, 11 Apr 2017 23:51:17 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 5/8] GC inferior.c:init_inferior_list Date: Tue, 11 Apr 2017 23:56:00 -0000 Message-Id: <1491954673-29172-6-git-send-email-palves@redhat.com> In-Reply-To: <1491954673-29172-1-git-send-email-palves@redhat.com> References: <1491954673-29172-1-git-send-email-palves@redhat.com> X-SW-Source: 2017-04/txt/msg00301.txt.bz2 Not used anywhere. This was actually never used. It came in because I originally created inferior.c by copying thread.c, and doing s/thread/inferior/g, and missed that nothing needs this. :-) gdb/ChangeLog: yyyy-mm-dd Pedro Alves * inferior.c (init_inferior_list): Delete. * inferior.h (init_inferior_list): Delete. --- gdb/inferior.c | 18 ------------------ gdb/inferior.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/gdb/inferior.c b/gdb/inferior.c index 4ae265e..54e9967 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -105,24 +105,6 @@ free_inferior (struct inferior *inf) xfree (inf); } -void -init_inferior_list (void) -{ - struct inferior *inf, *infnext; - - highest_inferior_num = 0; - if (!inferior_list) - return; - - for (inf = inferior_list; inf; inf = infnext) - { - infnext = inf->next; - free_inferior (inf); - } - - inferior_list = NULL; -} - struct inferior * add_inferior_silent (int pid) { diff --git a/gdb/inferior.h b/gdb/inferior.h index 7c0ddf3..29ec7be 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -433,9 +433,6 @@ struct inferior DECLARE_REGISTRY (inferior); -/* Create an empty inferior list, or empty the existing one. */ -extern void init_inferior_list (void); - /* Add an inferior to the inferior list, print a message that a new inferior is found, and return the pointer to the new inferior. Caller may use this pointer to initialize the private inferior -- 2.5.5