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]

[ob] Add a prototype


Andrew pointed out this bad style ages and ages ago.  Committed as
obvious.

-- 
Daniel Jacobowitz
CodeSourcery

2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>

	* linux-nat.c (linux_nat_add_target): Remove extern.
	* linux-nat.h (thread_db_init): New prototype.

Index: linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.c,v
retrieving revision 1.48
diff -u -p -r1.48 linux-nat.c
--- linux-nat.c	12 Jul 2006 18:13:45 -0000	1.48
+++ linux-nat.c	23 Jul 2006 21:20:17 -0000
@@ -3180,8 +3180,6 @@ linux_target (void)
 void
 linux_nat_add_target (struct target_ops *t)
 {
-  extern void thread_db_init (struct target_ops *);
-
   /* Save the provided single-threaded target.  We save this in a separate
      variable because another target we've inherited from (e.g. inf-ptrace)
      may have saved a pointer to T; we want to use it for the final
Index: linux-nat.h
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.h,v
retrieving revision 1.11
diff -u -p -r1.11 linux-nat.h
--- linux-nat.h	30 Mar 2006 16:34:23 -0000	1.11
+++ linux-nat.h	23 Jul 2006 21:20:17 -0000
@@ -68,6 +68,9 @@ struct lwp_info
 /* Attempt to initialize libthread_db.  */
 void check_for_thread_db (void);
 
+/* Tell the thread_db layer what native target operations to use.  */
+void thread_db_init (struct target_ops *);
+
 /* Find process PID's pending signal set from /proc/pid/status.  */
 void linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigset_t *ignored);
 


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