Global renaming of find_thread_pid to find_thread_ptid.
	* gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
	* thread.c (find_thread_ptid): Renamed from find_thread_pid.
	All callers updated.
gdbserver:
	Global renaming of find_thread_pid to find_thread_ptid.
	* server.h (find_thread_ptid): Renamed from find_thread_pid.
	* inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
	All callers updated.
This commit is contained in:
Doug Evans
2009-05-24 21:06:53 +00:00
parent 4e3990f4f9
commit e09875d410
18 changed files with 62 additions and 52 deletions

View File

@@ -1096,7 +1096,7 @@ linux_nat_switch_fork (ptid_t new_ptid)
static void
exit_lwp (struct lwp_info *lp)
{
struct thread_info *th = find_thread_pid (lp->ptid);
struct thread_info *th = find_thread_ptid (lp->ptid);
if (th)
{
@@ -1426,7 +1426,7 @@ get_pending_status (struct lwp_info *lp, int *status)
have the last signal recorded in
thread_info->stop_signal. */
struct thread_info *tp = find_thread_pid (lp->ptid);
struct thread_info *tp = find_thread_ptid (lp->ptid);
signo = tp->stop_signal;
}
@@ -1455,7 +1455,7 @@ GPT: lwp %s had signal %s, but it is in no pass state\n",
{
if (GET_LWP (lp->ptid) == GET_LWP (last_ptid))
{
struct thread_info *tp = find_thread_pid (lp->ptid);
struct thread_info *tp = find_thread_ptid (lp->ptid);
if (tp->stop_signal != TARGET_SIGNAL_0
&& signal_pass_state (tp->stop_signal))
*status = W_STOPCODE (target_signal_to_host (tp->stop_signal));
@@ -4515,7 +4515,7 @@ linux_nat_stop_lwp (struct lwp_info *lwp, void *data)
if (debug_linux_nat)
{
if (find_thread_pid (lwp->ptid)->stop_requested)
if (find_thread_ptid (lwp->ptid)->stop_requested)
fprintf_unfiltered (gdb_stdlog, "\
LNSL: already stopped/stop_requested %s\n",
target_pid_to_str (lwp->ptid));