Deleted Added
full compact
thread_db_int.h (183021) thread_db_int.h (209689)
1/*
2 * Copyright (c) 2004 David Xu <davidxu@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 2004 David Xu <davidxu@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libthread_db/thread_db_int.h 183021 2008-09-14 16:07:21Z marcel $
26 * $FreeBSD: head/lib/libthread_db/thread_db_int.h 209689 2010-07-04 12:08:04Z kib $
27 */
28
29#ifndef _THREAD_DB_INT_H_
30#define _THREAD_DB_INT_H_
31
32#include <sys/types.h>
33#include <sys/queue.h>
34
27 */
28
29#ifndef _THREAD_DB_INT_H_
30#define _THREAD_DB_INT_H_
31
32#include <sys/types.h>
33#include <sys/queue.h>
34
35typedef struct {
36 const td_thragent_t *ti_ta_p;
37 thread_t ti_tid;
38 psaddr_t ti_thread;
39 td_thr_state_e ti_state;
40 td_thr_type_e ti_type;
41 td_thr_events_t ti_events;
42 int ti_pri;
43 lwpid_t ti_lid;
44 char ti_db_suspended;
45 char ti_traceme;
46 sigset_t ti_sigmask;
47 sigset_t ti_pending;
48 psaddr_t ti_tls;
49 psaddr_t ti_startfunc;
50 psaddr_t ti_stkbase;
51 size_t ti_stksize;
52} td_old_thrinfo_t;
53
35#define TD_THRAGENT_FIELDS \
36 struct ta_ops *ta_ops; \
37 TAILQ_ENTRY(td_thragent) ta_next; \
38 struct ps_prochandle *ph
39
40struct ta_ops {
41 td_err_e (*to_init)(void);
42

--- 17 unchanged lines hidden (view full) ---

60
61 td_err_e (*to_thr_clear_event)(const td_thrhandle_t *,
62 td_thr_events_t *);
63 td_err_e (*to_thr_dbresume)(const td_thrhandle_t *);
64 td_err_e (*to_thr_dbsuspend)(const td_thrhandle_t *);
65 td_err_e (*to_thr_event_enable)(const td_thrhandle_t *, int);
66 td_err_e (*to_thr_event_getmsg)(const td_thrhandle_t *,
67 td_event_msg_t *);
54#define TD_THRAGENT_FIELDS \
55 struct ta_ops *ta_ops; \
56 TAILQ_ENTRY(td_thragent) ta_next; \
57 struct ps_prochandle *ph
58
59struct ta_ops {
60 td_err_e (*to_init)(void);
61

--- 17 unchanged lines hidden (view full) ---

79
80 td_err_e (*to_thr_clear_event)(const td_thrhandle_t *,
81 td_thr_events_t *);
82 td_err_e (*to_thr_dbresume)(const td_thrhandle_t *);
83 td_err_e (*to_thr_dbsuspend)(const td_thrhandle_t *);
84 td_err_e (*to_thr_event_enable)(const td_thrhandle_t *, int);
85 td_err_e (*to_thr_event_getmsg)(const td_thrhandle_t *,
86 td_event_msg_t *);
87 td_err_e (*to_thr_old_get_info)(const td_thrhandle_t *,
88 td_old_thrinfo_t *);
68 td_err_e (*to_thr_get_info)(const td_thrhandle_t *, td_thrinfo_t *);
69 td_err_e (*to_thr_getfpregs)(const td_thrhandle_t *, prfpregset_t *);
70 td_err_e (*to_thr_getgregs)(const td_thrhandle_t *, prgregset_t);
71 td_err_e (*to_thr_set_event)(const td_thrhandle_t *,
72 td_thr_events_t *);
73 td_err_e (*to_thr_setfpregs)(const td_thrhandle_t *,
74 const prfpregset_t *);
75 td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, const prgregset_t);

--- 22 unchanged lines hidden (view full) ---

98int thr_pread_int(const struct td_thragent *, psaddr_t, uint32_t *);
99int thr_pread_long(const struct td_thragent *, psaddr_t, uint64_t *);
100int thr_pread_ptr(const struct td_thragent *, psaddr_t, psaddr_t *);
101
102int thr_pwrite_int(const struct td_thragent *, psaddr_t, uint32_t);
103int thr_pwrite_long(const struct td_thragent *, psaddr_t, uint64_t);
104int thr_pwrite_ptr(const struct td_thragent *, psaddr_t, psaddr_t);
105
89 td_err_e (*to_thr_get_info)(const td_thrhandle_t *, td_thrinfo_t *);
90 td_err_e (*to_thr_getfpregs)(const td_thrhandle_t *, prfpregset_t *);
91 td_err_e (*to_thr_getgregs)(const td_thrhandle_t *, prgregset_t);
92 td_err_e (*to_thr_set_event)(const td_thrhandle_t *,
93 td_thr_events_t *);
94 td_err_e (*to_thr_setfpregs)(const td_thrhandle_t *,
95 const prfpregset_t *);
96 td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, const prgregset_t);

--- 22 unchanged lines hidden (view full) ---

119int thr_pread_int(const struct td_thragent *, psaddr_t, uint32_t *);
120int thr_pread_long(const struct td_thragent *, psaddr_t, uint64_t *);
121int thr_pread_ptr(const struct td_thragent *, psaddr_t, psaddr_t *);
122
123int thr_pwrite_int(const struct td_thragent *, psaddr_t, uint32_t);
124int thr_pwrite_long(const struct td_thragent *, psaddr_t, uint64_t);
125int thr_pwrite_ptr(const struct td_thragent *, psaddr_t, psaddr_t);
126
127td_err_e td_thr_old_get_info(const td_thrhandle_t *th, td_old_thrinfo_t *info);
128
106#endif /* _THREAD_DB_INT_H_ */
129#endif /* _THREAD_DB_INT_H_ */