Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libpthread_dbg/Attic/pthread_dbg_int.h,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libpthread_dbg/Attic/pthread_dbg_int.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.1.2.2 diff -u -p -r1.1 -r1.1.2.2 --- src/lib/libpthread_dbg/Attic/pthread_dbg_int.h 2002/07/31 23:05:20 1.1 +++ src/lib/libpthread_dbg/Attic/pthread_dbg_int.h 2002/10/01 20:41:15 1.1.2.2 @@ -0,0 +1,33 @@ + +PTQ_HEAD(thread_queue_t, td_thread_st); +PTQ_HEAD(sync_queue_t, td_sync_st); + +struct td_proc_st { + struct td_proc_callbacks_t *cb; + void *arg; + + caddr_t allqueue; + struct thread_queue_t threads; + struct sync_queue_t syncs; +}; + + +struct td_thread_st { + td_proc_t *proc; + caddr_t addr; + lwpid_t lwp; + PTQ_ENTRY(td_thread_st) list; +}; + + +struct td_sync_st { + td_proc_t *proc; + caddr_t addr; + PTQ_ENTRY(td_sync_st) list; +}; + +#define READ(proc, addr, buf, size) ((proc)->cb->proc_read((proc)->arg, (addr), (buf), (size))) +#define WRITE(proc, addr, buf, size) ((proc)->cb->proc_write((proc)->arg, (addr), (buf), (size))) +#define LOOKUP(proc, sym, addr) ((proc)->cb->proc_lookup((proc)->arg, (sym), (addr))) +#define GETREGS(proc, regset, lwp, buf) ((proc)->cb->proc_getregs((proc)->arg, (regset), (lwp), (buf))) +#define SETREGS(proc, regset, lwp, buf) ((proc)->cb->proc_setregs((proc)->arg, (regset), (lwp), (buf)))