This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[multiprocess] RFA: remove duplicate declarations


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  <tromey@redhat.com>

	* 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) */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]