summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db/thread_db_int.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-09-14 16:07:21 +0000
committermarcel <marcel@FreeBSD.org>2008-09-14 16:07:21 +0000
commitead754945e1303f4902bb9c1d2f3da9dcc13c967 (patch)
tree02668a21719febb89d083b97a83b079abb56473a /lib/libthread_db/thread_db_int.h
parentae2f507eb0c3fb503f9f2b78128db903aceeabc1 (diff)
downloadFreeBSD-src-ead754945e1303f4902bb9c1d2f3da9dcc13c967.zip
FreeBSD-src-ead754945e1303f4902bb9c1d2f3da9dcc13c967.tar.gz
Allow psaddr_t to be widened by using thr_pread_{int,long,ptr},
where critical. Some places still use ps_pread/ps_pwrite directly, but only need changed when byte-order comes into the picture. Also, change th_p in td_event_msg_t from a pointer type to psaddr_t, so that events also work when psaddr_t is widened.
Diffstat (limited to 'lib/libthread_db/thread_db_int.h')
-rw-r--r--lib/libthread_db/thread_db_int.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libthread_db/thread_db_int.h b/lib/libthread_db/thread_db_int.h
index bffa0f3..3b03062 100644
--- a/lib/libthread_db/thread_db_int.h
+++ b/lib/libthread_db/thread_db_int.h
@@ -95,12 +95,12 @@ struct ta_ops {
struct td_thragent;
-int thr_pread_int(struct td_thragent *, psaddr_t, uint32_t *);
-int thr_pread_long(struct td_thragent *, psaddr_t, uint64_t *);
-int thr_pread_ptr(struct td_thragent *, psaddr_t, uint64_t *);
+int thr_pread_int(const struct td_thragent *, psaddr_t, uint32_t *);
+int thr_pread_long(const struct td_thragent *, psaddr_t, uint64_t *);
+int thr_pread_ptr(const struct td_thragent *, psaddr_t, psaddr_t *);
-int thr_pwrite_int(struct td_thragent *, psaddr_t, uint32_t);
-int thr_pwrite_long(struct td_thragent *, psaddr_t, uint64_t);
-int thr_pwrite_ptr(struct td_thragent *, psaddr_t, uint64_t);
+int thr_pwrite_int(const struct td_thragent *, psaddr_t, uint32_t);
+int thr_pwrite_long(const struct td_thragent *, psaddr_t, uint64_t);
+int thr_pwrite_ptr(const struct td_thragent *, psaddr_t, psaddr_t);
#endif /* _THREAD_DB_INT_H_ */
OpenPOWER on IntegriCloud