aboutsummaryrefslogtreecommitdiff
path: root/lib/libthread_db
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-08-07 15:52:13 +0000
committerMarius Strobl <marius@FreeBSD.org>2011-08-07 15:52:13 +0000
commitef6f47c4ae9421ebfa00dc66a131bbd09b1e25ba (patch)
treee9fe84bbf06ca3a40cda51677a2becf97861bc23 /lib/libthread_db
parente967c8b89985a4f407f57da364ae2ebda171963d (diff)
downloadsrc-ef6f47c4ae9421ebfa00dc66a131bbd09b1e25ba.tar.gz
src-ef6f47c4ae9421ebfa00dc66a131bbd09b1e25ba.zip
Change lwp to int64_t as thr_pread_long() always uses a 64-bit value
in order to account for LP64 targets when cross-debugging on ILP32, allowing r224683 to compile on ILP32. Note that thr_p{read,write}_{long,ptr}() still incorrectly use the size of the respective types on the host rather than that on the target when accessing the target address space which still needs to be fixed. This means that r224683 alone may not be sufficient to solve the problem it's intended to fix when cross-debugging. Approved by: re (hrs)
Notes
Notes: svn path=/head/; revision=224693
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/libthr_db.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libthread_db/libthr_db.c b/lib/libthread_db/libthr_db.c
index 65248c10630d..b24385f97687 100644
--- a/lib/libthread_db/libthr_db.c
+++ b/lib/libthread_db/libthr_db.c
@@ -202,7 +202,7 @@ static td_err_e
pt_ta_map_id2thr(const td_thragent_t *ta, thread_t id, td_thrhandle_t *th)
{
psaddr_t pt;
- long lwp;
+ int64_t lwp;
int ret;
TDBG_FUNC();
@@ -245,7 +245,7 @@ pt_ta_thr_iter(const td_thragent_t *ta, td_thr_iter_f *callback,
{
td_thrhandle_t th;
psaddr_t pt;
- long lwp;
+ int64_t lwp;
int ret;
TDBG_FUNC();
@@ -368,7 +368,7 @@ pt_ta_event_getmsg(const td_thragent_t *ta, td_event_msg_t *msg)
psaddr_t pt;
td_thr_events_e tmp;
- long lwp;
+ int64_t lwp;
int ret;
TDBG_FUNC();
@@ -672,7 +672,7 @@ pt_thr_event_getmsg(const td_thrhandle_t *th, td_event_msg_t *msg)
static td_thrhandle_t handle;
const td_thragent_t *ta = th->th_ta;
psaddr_t pt, pt_temp;
- long lwp;
+ int64_t lwp;
int ret;
td_thr_events_e tmp;