This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[multiprocess] RFA: remove duplicate declarations
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 24 Nov 2008 11:50:34 -0700
- Subject: [multiprocess] RFA: remove duplicate declarations
- Reply-to: tromey at redhat dot com
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) */