|
0
|
1 |
|
|
2 /* |
|
|
3 * Copyright (c) 1998 Cygnus Support |
|
|
4 * |
|
|
5 * The authors hereby grant permission to use, copy, modify, distribute, |
|
|
6 * and license this software and its documentation for any purpose, provided |
|
|
7 * that existing copyright notices are retained in all copies and that this |
|
|
8 * notice is included verbatim in any distributions. No written agreement, |
|
|
9 * license, or royalty fee is required for any of the authorized uses. |
|
|
10 * Modifications to this software may be copyrighted by their authors |
|
|
11 * and need not follow the licensing terms described here, provided that |
|
|
12 * the new terms are clearly indicated on the first page of each file where |
|
|
13 * they apply. |
|
|
14 */ |
|
|
15 |
|
|
16 /* This file should be included only by |
|
|
17 thread-syscall-relay.c and |
|
|
18 dbg-thread-demux.c |
|
|
19 */ |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 enum dbg_syscall_ids |
|
|
24 { |
|
|
25 dbg_null_func , |
|
|
26 dbg_capabilities_func, |
|
|
27 dbg_currthread_func, |
|
|
28 dbg_threadlist_func, |
|
|
29 dbg_threadinfo_func, |
|
|
30 dbg_getthreadreg_func, |
|
|
31 dbg_setthreadreg_func |
|
|
32 } ; |
|
|
33 |
|
|
34 |
|
|
35 union dbg_thread_syscall_parms |
|
|
36 { |
|
|
37 struct |
|
|
38 { |
|
|
39 struct dbg_capabilities * abilities ; |
|
|
40 } cap_parms ; |
|
|
41 |
|
|
42 struct |
|
|
43 { |
|
|
44 threadref * ref ; |
|
|
45 } currthread_parms ; |
|
|
46 |
|
|
47 struct |
|
|
48 { |
|
|
49 int startflag ; |
|
|
50 threadref * lastid ; |
|
|
51 threadref * nextthreadid ; |
|
|
52 } threadlist_parms ; |
|
|
53 |
|
|
54 struct |
|
|
55 { |
|
|
56 threadref * ref ; |
|
|
57 struct cygmon_thread_debug_info * info ; |
|
|
58 } info_parms ; |
|
|
59 |
|
|
60 struct |
|
|
61 { |
|
|
62 threadref * thread ; |
|
|
63 int regcount ; |
|
|
64 void * registers ; |
|
|
65 } reg_parms ; |
|
|
66 } ; |
|
|
67 |
|
|
68 |
|
|
69 typedef int (*dbg_syscall_func) (enum dbg_syscall_ids id, |
|
|
70 union dbg_thread_syscall_parms * p ) ; |