aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-10-14 23:44:13 +0000
committerJason Molenda <jmolenda@apple.com>1998-10-14 23:44:13 +0000
commit879c041771ae0fcd6a58373b926c31df992af1ab (patch)
tree4d1ba0c8d464a28ed36382223c68100028909810 /gdb/thread.c
parentaad579b0308d17e8d0ae39b2c175a926531f7378 (diff)
downloadgdb-879c041771ae0fcd6a58373b926c31df992af1ab.zip
gdb-879c041771ae0fcd6a58373b926c31df992af1ab.tar.gz
gdb-879c041771ae0fcd6a58373b926c31df992af1ab.tar.bz2
1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
* defs.h: Move _initialize_printcmd, _initialize_stack, _initialize_blockframe out of here and in to their respective .c files. * blockframe.c: Move _initialize_blockframe prototype to here. * printcmd.c: Move _initialize_printcmd prototype to here. * stack.c: Move _initialize_stack prototype to here. * source.c, symtab.h: Move _initialize_source prototype to the .c file. * values.c, value.h: Move _initialize_values prototype to the .c file. * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c file. * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype to the .c file. * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c: Standardize comments for the prototype section of these files. * configure.in: Look in libc for wctype before looking for it in libc. The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem where an empty stub library (libw) causes a core dump when we call vasprintf (e.g. `info br') in the final linked gdb.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c33
1 files changed, 15 insertions, 18 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 23202db..149109d 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -58,32 +58,29 @@ struct thread_info
static struct thread_info *thread_list = NULL;
static int highest_thread_num;
-static void
-thread_command PARAMS ((char * tidstr, int from_tty));
+/* Prototypes for exported functions. */
-static void
-prune_threads PARAMS ((void));
+void _initialize_thread PARAMS ((void));
-static void
-switch_to_thread PARAMS ((int pid));
+/* Prototypes for local functions. */
-static struct thread_info *
-find_thread_id PARAMS ((int num));
+static void thread_command PARAMS ((char * tidstr, int from_tty));
-static void
-info_threads_command PARAMS ((char *, int));
+static void prune_threads PARAMS ((void));
-static void
-restore_current_thread PARAMS ((int));
+static void switch_to_thread PARAMS ((int pid));
-static void
-thread_apply_all_command PARAMS ((char *, int));
+static struct thread_info *find_thread_id PARAMS ((int num));
-static void
-thread_apply_command PARAMS ((char *, int));
+static void info_threads_command PARAMS ((char *, int));
-static int
-thread_alive PARAMS ((struct thread_info *));
+static void restore_current_thread PARAMS ((int));
+
+static void thread_apply_all_command PARAMS ((char *, int));
+
+static void thread_apply_command PARAMS ((char *, int));
+
+static int thread_alive PARAMS ((struct thread_info *));
void
init_thread_list ()