|
0
|
1 /* thread-packets.h - |
|
|
2 Optional packet processing for thread aware debugging. |
|
|
3 Externs as called by central packet switch routine |
|
|
4 */ |
|
|
5 |
|
|
6 /* |
|
|
7 * Copyright (c) 1998 Cygnus Support |
|
|
8 * |
|
|
9 * The authors hereby grant permission to use, copy, modify, distribute, |
|
|
10 * and license this software and its documentation for any purpose, provided |
|
|
11 * that existing copyright notices are retained in all copies and that this |
|
|
12 * notice is included verbatim in any distributions. No written agreement, |
|
|
13 * license, or royalty fee is required for any of the authorized uses. |
|
|
14 * Modifications to this software may be copyrighted by their authors |
|
|
15 * and need not follow the licensing terms described here, provided that |
|
|
16 * the new terms are clearly indicated on the first page of each file where |
|
|
17 * they apply. |
|
|
18 */ |
|
|
19 |
|
|
20 /* The DEBUG_THREADS flag is usually set in board.h */ |
|
|
21 |
|
|
22 |
|
|
23 #if DEBUG_THREADS /* activate this in board.h */ |
|
|
24 |
|
|
25 extern void stub_pkt_changethread(char * inbuf, |
|
|
26 char * outbuf, |
|
|
27 int bufmax) ; |
|
|
28 |
|
|
29 |
|
|
30 extern void stub_pkt_getthreadlist(char * inbuf, |
|
|
31 char * outbuf, |
|
|
32 int bufmax) ; |
|
|
33 |
|
|
34 |
|
|
35 extern void stub_pkt_getthreadinfo( |
|
|
36 char * inbuf, |
|
|
37 char * outbuf, |
|
|
38 int bufmax) ; |
|
|
39 |
|
|
40 extern void stub_pkt_thread_alive( |
|
|
41 char * inbuf, |
|
|
42 char * outbuf, |
|
|
43 int bufmax) ; |
|
|
44 |
|
|
45 extern void stub_pkt_currthread( |
|
|
46 char * inbuf, |
|
|
47 char * outbuf, |
|
|
48 int bufmax) ; |
|
|
49 |
|
|
50 #define STUB_PKT_GETTHREADLIST(a,b,c) { stub_pkt_getthreadlist(a,b,c);} |
|
|
51 #define STUB_PKT_GETTHREADINFO(a,b,c) { stub_pkt_getthreadinfo(a,b,c);} |
|
|
52 #define STUB_PKT_CHANGETHREAD(a,b,c) { stub_pkt_changethread(a,b,c);} |
|
|
53 #define STUB_PKT_THREAD_ALIVE(a,b,c) { stub_pkt_thread_alive(a,b,c);} |
|
|
54 #define STUB_PKT_CURRTHREAD(a,b,c) { stub_pkt_currthread(a,b,c);} |
|
|
55 #else |
|
|
56 #define STUB_PKT_GETTHREADLIST(a,b,c) {} |
|
|
57 #define STUB_PKT_GETTHREADINFO(a,b,c) {} |
|
|
58 #define STUB_PKT_CHANGETHREAD(a,b,c) {} |
|
|
59 #define STUB_PKT_THREAD_ALIVE(a,b,c) {} |
|
|
60 #define STUB_PKT_CURRTHREAD(a,b,c) {} |
|
|
61 #endif |