|
0
|
1 |
|
|
2 /* |
|
2
|
3 * Copyright (c) 1998,1999 Cygnus Solutions |
|
0
|
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, |
|
2
|
31 dbg_setthreadreg_func, |
|
|
32 dbg_scheduler_func, |
|
0
|
33 } ; |
|
|
34 |
|
|
35 |
|
|
36 union dbg_thread_syscall_parms |
|
|
37 { |
|
|
38 struct |
|
|
39 { |
|
|
40 struct dbg_capabilities * abilities ; |
|
|
41 } cap_parms ; |
|
|
42 |
|
|
43 struct |
|
|
44 { |
|
|
45 threadref * ref ; |
|
|
46 } currthread_parms ; |
|
|
47 |
|
|
48 struct |
|
|
49 { |
|
|
50 int startflag ; |
|
|
51 threadref * lastid ; |
|
|
52 threadref * nextthreadid ; |
|
|
53 } threadlist_parms ; |
|
|
54 |
|
|
55 struct |
|
|
56 { |
|
|
57 threadref * ref ; |
|
|
58 struct cygmon_thread_debug_info * info ; |
|
|
59 } info_parms ; |
|
|
60 |
|
|
61 struct |
|
|
62 { |
|
|
63 threadref * thread ; |
|
|
64 int regcount ; |
|
|
65 void * registers ; |
|
|
66 } reg_parms ; |
|
2
|
67 struct |
|
|
68 { |
|
|
69 threadref * thread ; /* 64-bit thread identifier */ |
|
|
70 int lock; /* 0 == unlock, 1 == lock */ |
|
|
71 int mode; /* 0 == short (step), 1 == continue */ |
|
|
72 } scheduler_parms ; |
|
0
|
73 } ; |
|
|
74 |
|
|
75 |
|
|
76 typedef int (*dbg_syscall_func) (enum dbg_syscall_ids id, |
|
2
|
77 union dbg_thread_syscall_parms * p ) ; |