projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RISC-V: Add osabi support.
[deliverable/binutils-gdb.git]
/
gdb
/
aix-thread.c
diff --git
a/gdb/aix-thread.c
b/gdb/aix-thread.c
index 8b1b0ed97f62750672370df382fbaebed6d85aef..97592e5b1f70c18b92bf704ff6ffb511c89c016d 100644
(file)
--- a/
gdb/aix-thread.c
+++ b/
gdb/aix-thread.c
@@
-70,7
+70,7
@@
static int debug_aix_thread;
/* Return whether to treat PID as a debuggable thread id. */
/* Return whether to treat PID as a debuggable thread id. */
-#define PD_TID(ptid) (pd_active && ptid
_get_tid (ptid
) != 0)
+#define PD_TID(ptid) (pd_active && ptid
.tid (
) != 0)
/* pthdb_user_t value that we pass to pthdb functions. 0 causes
PTHDB_BAD_USER errors, so use 1. */
/* pthdb_user_t value that we pass to pthdb functions. 0 causes
PTHDB_BAD_USER errors, so use 1. */
@@
-325,7
+325,7
@@
pid_to_prc (ptid_t *ptidp)
ptid = *ptidp;
if (PD_TID (ptid))
ptid = *ptidp;
if (PD_TID (ptid))
- *ptidp = p
id_to_ptid (ptid_get_pid (ptid
));
+ *ptidp = p
tid_t (ptid.pid (
));
}
/* pthdb callback: for <i> from 0 to COUNT, set SYMBOLS[<i>].addr to
}
/* pthdb callback: for <i> from 0 to COUNT, set SYMBOLS[<i>].addr to
@@
-673,17
+673,17
@@
ptid_cmp (ptid_t ptid1, ptid_t ptid2)
{
int pid1, pid2;
{
int pid1, pid2;
- if (ptid
_get_pid (ptid1) < ptid_get_pid (ptid2
))
+ if (ptid
1.pid () < ptid2.pid (
))
return -1;
return -1;
- else if (ptid
_get_pid (ptid1) > ptid_get_pid (ptid2
))
+ else if (ptid
1.pid () > ptid2.pid (
))
return 1;
return 1;
- else if (ptid
_get_tid (ptid1) < ptid_get_tid (ptid2
))
+ else if (ptid
1.tid () < ptid2.tid (
))
return -1;
return -1;
- else if (ptid
_get_tid (ptid1) > ptid_get_tid (ptid2
))
+ else if (ptid
1.tid () > ptid2.tid (
))
return 1;
return 1;
- else if (ptid
_get_lwp (ptid1) < ptid_get_lwp (ptid2
))
+ else if (ptid
1.lwp () < ptid2.lwp (
))
return -1;
return -1;
- else if (ptid
_get_lwp (ptid1) > ptid_get_lwp (ptid2
))
+ else if (ptid
1.lwp () > ptid2.lwp (
))
return 1;
else
return 0;
return 1;
else
return 0;
@@
-712,7
+712,7
@@
get_signaled_thread (void)
while (1)
{
while (1)
{
- if (getthrds (
ptid_get_pid (inferior_ptid
), &thrinf,
+ if (getthrds (
inferior_ptid.pid (
), &thrinf,
sizeof (thrinf), &ktid, 1) != 1)
break;
sizeof (thrinf), &ktid, 1) != 1)
break;
@@
-795,12
+795,12
@@
sync_threadlists (void)
/* Apply differences between the two arrays to GDB's thread list. */
/* Apply differences between the two arrays to GDB's thread list. */
- infpid =
ptid_get_pid (inferior_ptid
);
+ infpid =
inferior_ptid.pid (
);
for (pi = gi = 0; pi < pcount || gi < gcount;)
{
if (pi == pcount)
{
for (pi = gi = 0; pi < pcount || gi < gcount;)
{
if (pi == pcount)
{
- delete_thread (gbuf[gi]
->ptid
);
+ delete_thread (gbuf[gi]);
gi++;
}
else if (gi == gcount)
gi++;
}
else if (gi == gcount)
@@
-818,7
+818,7
@@
sync_threadlists (void)
ptid_t pptid, gptid;
int cmp_result;
ptid_t pptid, gptid;
int cmp_result;
- pptid = ptid_
build
(infpid, 0, pbuf[pi].pthid);
+ pptid = ptid_
t
(infpid, 0, pbuf[pi].pthid);
gptid = gbuf[gi]->ptid;
pdtid = pbuf[pi].pdtid;
tid = pbuf[pi].tid;
gptid = gbuf[gi]->ptid;
pdtid = pbuf[pi].pdtid;
tid = pbuf[pi].tid;
@@
-836,7
+836,7
@@
sync_threadlists (void)
}
else if (cmp_result > 0)
{
}
else if (cmp_result > 0)
{
- delete_thread (g
ptid
);
+ delete_thread (g
buf[gi]
);
gi++;
}
else
gi++;
}
else
@@
-1042,7
+1042,7
@@
aix_thread_target::resume (ptid_t ptid, int step, enum gdb_signal sig)
{
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
{
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
- inferior_ptid = p
id_to_ptid (ptid_get_pid (inferior_ptid
));
+ inferior_ptid = p
tid_t (inferior_ptid.pid (
));
beneath ()->resume (ptid, step, sig);
}
else
beneath ()->resume (ptid, step, sig);
}
else
@@
-1050,14
+1050,14
@@
aix_thread_target::resume (ptid_t ptid, int step, enum gdb_signal sig)
thread = find_thread_ptid (ptid);
if (!thread)
error (_("aix-thread resume: unknown pthread %ld"),
thread = find_thread_ptid (ptid);
if (!thread)
error (_("aix-thread resume: unknown pthread %ld"),
- ptid
_get_lwp (ptid
));
+ ptid
.lwp (
));
aix_thread_info *priv = get_aix_thread_info (thread);
tid[0] = priv->tid;
if (tid[0] == PTHDB_INVALID_TID)
error (_("aix-thread resume: no tid for pthread %ld"),
aix_thread_info *priv = get_aix_thread_info (thread);
tid[0] = priv->tid;
if (tid[0] == PTHDB_INVALID_TID)
error (_("aix-thread resume: no tid for pthread %ld"),
- ptid
_get_lwp (ptid
));
+ ptid
.lwp (
));
tid[1] = 0;
if (arch64)
tid[1] = 0;
if (arch64)
@@
-1082,12
+1082,12
@@
aix_thread_target::wait (ptid_t ptid, struct target_waitstatus *status,
pid_to_prc (&ptid);
pid_to_prc (&ptid);
- inferior_ptid = p
id_to_ptid (ptid_get_pid (inferior_ptid
));
+ inferior_ptid = p
tid_t (inferior_ptid.pid (
));
ptid = beneath ()->wait (ptid, status, options);
}
ptid = beneath ()->wait (ptid, status, options);
}
- if (ptid
_get_pid (ptid
) == -1)
- return p
id_to_ptid
(-1);
+ if (ptid
.pid (
) == -1)
+ return p
tid_t
(-1);
/* Check whether libpthdebug might be ready to be initialized. */
if (!pd_active && status->kind == TARGET_WAITKIND_STOPPED
/* Check whether libpthdebug might be ready to be initialized. */
if (!pd_active && status->kind == TARGET_WAITKIND_STOPPED
@@
-1722,7
+1722,7
@@
aix_thread_target::xfer_partial (enum target_object object,
{
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
{
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
- inferior_ptid = p
id_to_ptid (ptid_get_pid (inferior_ptid
));
+ inferior_ptid = p
tid_t (inferior_ptid.pid (
));
return beneath ()->xfer_partial (object, annex, readbuf,
writebuf, offset, len, xfered_len);
}
return beneath ()->xfer_partial (object, annex, readbuf,
writebuf, offset, len, xfered_len);
}
@@
-1732,7
+1732,7
@@
aix_thread_target::xfer_partial (enum target_object object,
void
aix_thread_target::mourn_inferior ()
{
void
aix_thread_target::mourn_inferior ()
{
- target_ops *beneath = beneath ();
+ target_ops *beneath =
this->
beneath ();
pd_deactivate ();
beneath->mourn_inferior ();
pd_deactivate ();
beneath->mourn_inferior ();
@@
-1766,7
+1766,7
@@
aix_thread_target::pid_to_str (ptid_t ptid)
xstrprintf(). */
xfree (ret);
xstrprintf(). */
xfree (ret);
- ret = xstrprintf (_("Thread %ld"), ptid
_get_tid (ptid
));
+ ret = xstrprintf (_("Thread %ld"), ptid
.tid (
));
return ret;
}
return ret;
}
@@
-1832,7
+1832,7
@@
aix_thread_target::extra_thread_info (struct thread_info *thread)
ptid_t
aix_thread_target::get_ada_task_ptid (long lwp, long thread)
{
ptid_t
aix_thread_target::get_ada_task_ptid (long lwp, long thread)
{
- return ptid_
build (ptid_get_pid (inferior_ptid
), 0, thread);
+ return ptid_
t (inferior_ptid.pid (
), 0, thread);
}
}
This page took
0.027726 seconds
and
4
git commands to generate.