gdb
[deliverable/binutils-gdb.git] / gdb / aix-thread.c
index 37b798a43ba61306d714d711865a7c0e892ce19d..0a9fae32c42d369413467175d9fbb488807daa86 100644 (file)
@@ -1,7 +1,7 @@
 /* Low level interface for debugging AIX 4.3+ pthreads.
 
-   Copyright (C) 1999, 2000, 2002, 2007, 2008, 2009, 2010, 2011
-   Free Software Foundation, Inc.
+   Copyright (C) 1999-2000, 2002, 2007-2012 Free Software Foundation,
+   Inc.
    Written by Nick Duffek <nsd@redhat.com>.
 
    This file is part of GDB.
 #include <sched.h>
 #include <sys/pthdebug.h>
 
+#if !HAVE_DECL_GETTHRDS
+extern int getthrds (pid_t, struct thrdsinfo64 *, int, pthdb_tid_t *, int);
+#endif
+
 /* Whether to emit debugging output.  */
 static int debug_aix_thread;
 
@@ -647,10 +651,6 @@ get_signaled_thread (void)
   pthdb_tid_t ktid = 0;
   int result = 0;
 
-  /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file.  */
-  extern int getthrds (pid_t, struct thrdsinfo64 *, 
-                      int, pthdb_tid_t *, int);
-
   while (1)
   {
     if (getthrds (PIDGET (inferior_ptid), &thrinf, 
This page took 0.023556 seconds and 4 git commands to generate.