From e67d2588a44524b6472936d290dd5622db918422 Mon Sep 17 00:00:00 2001 From: drow Date: Sun, 23 Jul 2006 21:21:01 +0000 Subject: [PATCH] * linux-nat.c (linux_nat_add_target): Remove extern. * linux-nat.h (thread_db_init): New prototype. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 2 -- gdb/linux-nat.h | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7176b68fda..76c1b4e6ea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-07-23 Daniel Jacobowitz + + * linux-nat.c (linux_nat_add_target): Remove extern. + * linux-nat.h (thread_db_init): New prototype. + 2006-07-22 Daniel Jacobowitz * configure.tgt: Build gdbserver for Cygwin and mingw32. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 6c63ba97a8..d9e5726218 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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 diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h index b7cc92a327..f820ff6317 100644 --- a/gdb/linux-nat.h +++ b/gdb/linux-nat.h @@ -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); -- 2.11.0