1 | /* |
---|
2 | ************************************************************************** |
---|
3 | * |
---|
4 | * Component = RDBG |
---|
5 | * |
---|
6 | * Synopsis = rdbg.h |
---|
7 | * |
---|
8 | ************************************************************************** |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef RDBG_H |
---|
12 | #define RDBG_H |
---|
13 | |
---|
14 | #include <rpc/rpc.h> |
---|
15 | #include <sys/socket.h> |
---|
16 | #include <netinet/in.h> |
---|
17 | #include <rdbg/rdbg_f.h> |
---|
18 | #include <stdlib.h> /* For malloc() and free() prototypes */ |
---|
19 | #include <bsp.h> |
---|
20 | |
---|
21 | #define Malloc(size) malloc (size) |
---|
22 | #define Free(block) free (block) |
---|
23 | #define Realloc(block,size) realloc (block, size) |
---|
24 | #define StrDup(str) strdup(str) |
---|
25 | |
---|
26 | #define LIST_PID 16 /* dynamic list of processes/tasks */ |
---|
27 | #define LIST_PID_DEB 17 /* list of processes under debug now */ |
---|
28 | #define LIST_PID_THREAD 18 /* list of threads for specific process */ |
---|
29 | #define LIST_CONN 19 /* dynamic list of connections */ |
---|
30 | |
---|
31 | /* RTEMS internals */ |
---|
32 | extern void remotedeb_2 (struct svc_req* rqstp, SVCXPRT* transp); |
---|
33 | extern void setErrno (int error); |
---|
34 | extern int getErrno (); |
---|
35 | extern int ptrace (int request, int pid, char* addr, |
---|
36 | int data, char* addr2); |
---|
37 | |
---|
38 | extern int TSP_RETRIES; |
---|
39 | extern volatile int ExitForSingleStep; |
---|
40 | extern volatile int justSaveContext; |
---|
41 | extern volatile Objects_Id currentTargetThread; |
---|
42 | extern volatile int CannotRestart; |
---|
43 | extern volatile int TotalReboot; |
---|
44 | |
---|
45 | /* Missing RPC prototypes */ |
---|
46 | SVCXPRT* svcudp_create (int fd); |
---|
47 | void svc_processrequest (SVCXPRT* xprt, |
---|
48 | u_long prog, u_long vers, |
---|
49 | void (*dispatch)()); |
---|
50 | int svcudp_enablecache (SVCXPRT *transp, u_long size); |
---|
51 | |
---|
52 | #endif /* !RDBG_H */ |
---|
53 | |
---|