]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Multi-process/thread control defs for GDB, the GNU debugger. |
2 | Copyright 1987, 88, 89, 90, 91, 92, 1993, 1998 | |
3 | ||
4 | Contributed by Lynx Real-Time Systems, Inc. Los Gatos, CA. | |
5 | Free Software Foundation, Inc. | |
6 | ||
c5aa993b | 7 | This file is part of GDB. |
c906108c | 8 | |
c5aa993b JM |
9 | This program is free software; you can redistribute it and/or modify |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 2 of the License, or | |
12 | (at your option) any later version. | |
c906108c | 13 | |
c5aa993b JM |
14 | This program is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
c906108c | 18 | |
c5aa993b JM |
19 | You should have received a copy of the GNU General Public License |
20 | along with this program; if not, write to the Free Software | |
21 | Foundation, Inc., 59 Temple Place - Suite 330, | |
22 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
23 | |
24 | #ifndef GDBTHREAD_H | |
25 | #define GDBTHREAD_H | |
26 | ||
27 | /* For bpstat */ | |
28 | #include "breakpoint.h" | |
29 | ||
30 | extern void init_thread_list PARAMS ((void)); | |
31 | ||
32 | extern void add_thread PARAMS ((int pid)); | |
33 | ||
34 | extern void delete_thread PARAMS ((int)); | |
c5aa993b | 35 | |
c906108c SS |
36 | extern int thread_id_to_pid PARAMS ((int)); |
37 | ||
38 | extern int in_thread_list PARAMS ((int pid)); | |
39 | ||
40 | extern int pid_to_thread_id PARAMS ((int pid)); | |
41 | ||
42 | extern int valid_thread_id PARAMS ((int thread)); | |
43 | ||
44 | extern void load_infrun_state PARAMS ((int, CORE_ADDR *, CORE_ADDR *, char **, | |
45 | int *, struct breakpoint **, | |
46 | struct breakpoint **, CORE_ADDR *, | |
c5aa993b JM |
47 | CORE_ADDR *, CORE_ADDR *, int *, int *, |
48 | int *, bpstat *, int *)); | |
c906108c SS |
49 | |
50 | extern void save_infrun_state PARAMS ((int, CORE_ADDR, CORE_ADDR, char *, | |
51 | int, struct breakpoint *, | |
52 | struct breakpoint *, CORE_ADDR, | |
53 | CORE_ADDR, CORE_ADDR, int, int, | |
c5aa993b | 54 | int, bpstat, int)); |
c906108c SS |
55 | |
56 | /* Commands with a prefix of `thread'. */ | |
57 | extern struct cmd_list_element *thread_cmd_list; | |
58 | ||
c5aa993b | 59 | #endif /* GDBTHREAD_H */ |