From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1050 invoked by alias); 24 Nov 2008 18:51:22 -0000 Received: (qmail 1029 invoked by uid 22791); 24 Nov 2008 18:51:22 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Nov 2008 18:50:47 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mAOIob8P021803 for ; Mon, 24 Nov 2008 13:50:37 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mAOIoaCU008291; Mon, 24 Nov 2008 13:50:36 -0500 Received: from opsy.redhat.com (vpn-12-223.rdu.redhat.com [10.11.12.223]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mAOIoZJ4022188; Mon, 24 Nov 2008 13:50:35 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 8F332378788; Mon, 24 Nov 2008 11:50:34 -0700 (MST) To: gdb-patches@sourceware.org Subject: [multiprocess] RFA: remove duplicate declarations From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Mon, 24 Nov 2008 21:12:00 -0000 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2008-11/txt/msg00654.txt.bz2 While reading the multi-process branch I happened to notice some duplication declarations in inferior.h. This patch removes the duplicates. I didn't do a regression test on this since simply building it seemed sufficient. Ok? Tom 2008-11-24 Tom Tromey * inferior.h (number_of_inferiors, first_inferior_in_set, set_inferior_exec, inferior_list): Remove duplicate declarations. diff --git a/gdb/inferior.h b/gdb/inferior.h index 6b49bfc..c951026 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -580,8 +580,6 @@ extern int have_real_inferiors (void); extern int number_of_inferiors (void); -extern int number_of_inferiors (void); - /* Return a pointer to the current inferior. It is an error to call this if there is no current inferior. */ extern struct inferior *current_inferior (void); @@ -590,8 +588,6 @@ extern void set_inferior_name (struct inferior *inf, char *name); extern void set_inferior_exec (struct inferior *inf, struct exec *exec); -extern void set_inferior_exec (struct inferior *inf, struct exec *exec); - /* Itset definitions. */ extern struct itset *current_itset; @@ -608,12 +604,8 @@ extern int itset_member (struct itset *itset, struct inferior *inf, int thread_i extern struct inferior *first_inferior_in_set (struct itset *itset); -extern struct inferior *first_inferior_in_set (struct itset *itset); - extern void dump_itset (struct itset *itset); extern struct inferior *inferior_list; -extern struct inferior *inferior_list; - #endif /* !defined (INFERIOR_H) */