1td_thr_dbsuspend(3C_DB)Threads Debugging Library Functiontsd_thr_dbsuspend(3C_DB)
2
3
4
6 td_thr_dbsuspend, td_thr_dbresume - suspend and resume threads in
7 libc_db
8
10 cc [ flag... ] file... -lc_db [ library... ]
11 #include <proc_service.h>
12 #include <thread_db.h>
13
14 td_err_e td_thr_dbsuspend(const td_thrhandle_t *th_p);
15
16
17 td_err_e td_thr_dbresume(const td_thrhandle_t *th_p);
18
19
21 These operations do nothing other than call ps_lstop(3PROC) and
22 ps_lcontinue(3PROC), respectively, on the lightweight process (LWP)
23 identified by the thread handle, th_p. Since ps_lstop() and ps_lcon‐
24 tinue() must be provided by the caller's application (see proc_ser‐
25 vice(3PROC)), and the application (a debugger-like entity) has full
26 control over the stopped state of the process and all of its LWPs,
27 td_thr_dbsuspend() and td_thr_dbresume() are unnecessary interfaces.
28 They exist only to maintain interface compatibility with the past.
29
31 TD_OK The call completed successfully.
32
33
34 TD_BADTH An invalid thread handle was passed in.
35
36
37 TD_DBERR A call to ps_lstop() or ps_lcontinue() failed.
38
39
40 TD_ERR A libc_db internal error occurred.
41
42
44 See attributes(5) for description of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │MT-Level │Safe │
53 └─────────────────────────────┴─────────────────────────────┘
54
56 libc_db(3LIB), attributes(5)
57
58
59
60SunOS 5.11 20 Oct 1998 td_thr_dbsuspend(3C_DB)