Annotation of src/lib/libpthread_dbg/pthread_dbg_int.h, Revision 1.4
1.2 thorpej 1:
2: PTQ_HEAD(thread_queue_t, td_thread_st);
3: PTQ_HEAD(sync_queue_t, td_sync_st);
4:
5: struct td_proc_st {
6: struct td_proc_callbacks_t *cb;
7: void *arg;
8:
1.3 nathanw 9: caddr_t dbgaddr;
10: caddr_t allqaddr;
1.4 ! nathanw 11: caddr_t runqaddr;
! 12: caddr_t idleqaddr;
! 13: caddr_t suspqaddr;
1.3 nathanw 14: caddr_t maxlwpsaddr;
15: caddr_t tsdallocaddr;
16: caddr_t tsddestaddr;
17:
18: caddr_t stacksizeaddr;
19: int stacksizelg;
20: size_t stacksize;
21: vaddr_t stackmask;
22:
1.2 thorpej 23: struct thread_queue_t threads;
24: struct sync_queue_t syncs;
25: };
26:
27:
28: struct td_thread_st {
29: td_proc_t *proc;
30: caddr_t addr;
31: lwpid_t lwp;
32: PTQ_ENTRY(td_thread_st) list;
33: };
34:
35:
36: struct td_sync_st {
37: td_proc_t *proc;
38: caddr_t addr;
39: PTQ_ENTRY(td_sync_st) list;
40: };
41:
42: #define READ(proc, addr, buf, size) ((proc)->cb->proc_read((proc)->arg, (addr), (buf), (size)))
43: #define WRITE(proc, addr, buf, size) ((proc)->cb->proc_write((proc)->arg, (addr), (buf), (size)))
44: #define LOOKUP(proc, sym, addr) ((proc)->cb->proc_lookup((proc)->arg, (sym), (addr)))
45: #define GETREGS(proc, regset, lwp, buf) ((proc)->cb->proc_getregs((proc)->arg, (regset), (lwp), (buf)))
46: #define SETREGS(proc, regset, lwp, buf) ((proc)->cb->proc_setregs((proc)->arg, (regset), (lwp), (buf)))
CVSweb <webmaster@jp.NetBSD.org>