Home
last modified time | relevance | path

Searched refs:ptid (Results 1 – 25 of 52) sorted by relevance

123

/freebsd-9-stable/contrib/gdb/gdb/
Dlin-lwp.c88 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
89 #define GET_PID(ptid) ptid_get_pid (ptid) argument
90 #define is_lwp(ptid) (GET_LWP (ptid) != 0) argument
128 static int lin_lwp_thread_alive (ptid_t ptid);
176 add_lwp (ptid_t ptid) in add_lwp() argument
180 gdb_assert (is_lwp (ptid)); in add_lwp()
186 lp->ptid = ptid; in add_lwp()
199 delete_lwp (ptid_t ptid) in delete_lwp() argument
206 if (ptid_equal (lp->ptid, ptid)) in delete_lwp()
228 find_lwp_pid (ptid_t ptid) in find_lwp_pid() argument
[all …]
Dthread-db.c131 static void attach_thread (ptid_t ptid, const td_thrhandle_t *th_p,
137 #define GET_PID(ptid) ptid_get_pid (ptid) argument
138 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
139 #define GET_THREAD(ptid) ptid_get_tid (ptid) argument
141 #define is_lwp(ptid) (GET_LWP (ptid) != 0) argument
142 #define is_thread(ptid) (GET_THREAD (ptid) != 0) argument
295 err = td_ta_map_id2thr_p (thread_agent, GET_THREAD (thread_info->ptid), in thread_db_map_id2thr()
301 (long) GET_THREAD (thread_info->ptid), in thread_db_map_id2thr()
332 thread_from_lwp (ptid_t ptid) in thread_from_lwp() argument
339 if (GET_LWP (ptid) == 0) in thread_from_lwp()
[all …]
Duw-thread.c272 dbgpid (ptid_t ptid)
280 if (PIDGET (ptid) <= 0)
281 sprintf (buf, "%d", PIDGET (ptid));
416 thr_to_lwp (ptid_t ptid) in thr_to_lwp() argument
421 if (!ISTID (ptid)) in thr_to_lwp()
422 lid = ptid; in thr_to_lwp()
423 else if (!(info = find_thread_pid (ptid))) in thr_to_lwp()
428 lid = MKLID (PIDGET (ptid), info->private->lwpid); in thr_to_lwp()
442 if (!ISTID (tp->ptid)) in find_thread_lwp_callback()
466 lwp_to_thr (ptid_t ptid) in lwp_to_thr() argument
[all …]
Dthread.c65 static void switch_to_thread (ptid_t ptid);
123 add_thread (ptid_t ptid) in add_thread() argument
129 tp->ptid = ptid; in add_thread()
137 delete_thread (ptid_t ptid) in delete_thread() argument
144 if (ptid_equal (tp->ptid, ptid)) in delete_thread()
172 find_thread_pid (ptid_t ptid) in find_thread_pid() argument
177 if (ptid_equal (tp->ptid, ptid)) in find_thread_pid()
223 pid_to_thread_id (ptid_t ptid) in pid_to_thread_id() argument
228 if (ptid_equal (tp->ptid, ptid)) in pid_to_thread_id()
239 return thread->ptid; in thread_id_to_pid()
[all …]
Dsol-thread.c79 extern char *procfs_pid_to_str (ptid_t ptid);
90 ptid_t ptid; member
106 static void sol_thread_resume (ptid_t ptid, int step, enum target_signal signo);
108 static int sol_thread_alive (ptid_t ptid);
117 #define GET_PID(ptid) ptid_get_pid (ptid) argument
118 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
119 #define GET_THREAD(ptid) ptid_get_tid (ptid) argument
121 #define is_lwp(ptid) (GET_LWP (ptid) != 0) argument
122 #define is_thread(ptid) (GET_THREAD (ptid) != 0) argument
424 main_ph.ptid = inferior_ptid; /* Save for xfer_memory */ in sol_thread_attach()
[all …]
Dgdbthread.h41 ptid_t ptid; /* "Actual process id"; member
84 extern struct thread_info *add_thread (ptid_t ptid);
98 extern int pid_to_thread_id (ptid_t ptid);
102 extern int in_thread_list (ptid_t ptid);
109 extern struct thread_info *find_thread_pid (ptid_t ptid);
117 extern void save_infrun_state (ptid_t ptid,
136 extern void load_infrun_state (ptid_t ptid,
Dlynx-nat.c385 child_wait (ptid_t ptid, struct target_waitstatus *ourstatus) in child_wait() argument
430 ptid = BUILDPID (pid, thread); in child_wait()
434 inferior_ptid = ptid; in child_wait()
439 && !in_thread_list (ptid)) in child_wait()
443 realsig = ptrace (PTRACE_GETTRACESIG, PIDGET (ptid), in child_wait()
452 return ptid; in child_wait()
461 && in_thread_list (ptid)) in child_wait()
465 realsig = ptrace (PTRACE_GETTRACESIG, PIDGET (ptid), in child_wait()
470 ptrace (PTRACE_CONT, PIDGET (ptid), (PTRACE_ARG3_TYPE) 0, 0); in child_wait()
501 return ptid; in child_wait()
[all …]
Dinfrun.c973 ptid_t ptid; member
1042 ecs->ptid = target_wait_hook (ecs->waiton_ptid, ecs->wp); in wait_for_inferior()
1044 ecs->ptid = target_wait (ecs->waiton_ptid, ecs->wp); in wait_for_inferior()
1099 async_ecs->ptid = in fetch_inferior_event()
1102 async_ecs->ptid = target_wait (async_ecs->waiton_ptid, async_ecs->wp); in fetch_inferior_event()
1179 if (in_thread_list (inferior_ptid) && in_thread_list (ecs->ptid)) in context_switch()
1193 load_infrun_state (ecs->ptid, &prev_pc, in context_switch()
1203 inferior_ptid = ecs->ptid; in context_switch()
1368 stop_pc = read_pc_pid (ecs->ptid) - DECR_PC_AFTER_BREAK; in adjust_pc_after_break()
1403 write_pc_pid (stop_pc, ecs->ptid); in adjust_pc_after_break()
[all …]
Dtarget.h372 void (*to_notice_signals) (ptid_t ptid);
373 int (*to_thread_alive) (ptid_t ptid);
413 CORE_ADDR (*to_get_thread_local_address) (ptid_t ptid,
495 #define target_resume(ptid, step, siggnal) \ argument
498 (*current_target.to_resume) (ptid, step, siggnal); \
509 #define target_wait(ptid, status) \ argument
510 (*current_target.to_wait) (ptid, status)
522 #define target_post_wait(ptid, status) \ argument
523 (*current_target.to_post_wait) (ptid, status)
731 #define target_post_startup_inferior(ptid) \ argument
[all …]
Dnto-procfs.c74 static ptid_t do_attach (ptid_t ptid);
212 procfs_set_thread (ptid_t ptid) in procfs_set_thread() argument
216 tid = ptid_get_tid (ptid); in procfs_set_thread()
222 procfs_thread_alive (ptid_t ptid) in procfs_thread_alive() argument
226 tid = ptid_get_tid (ptid); in procfs_thread_alive()
237 ptid_t ptid; in procfs_find_new_threads() local
249 ptid = ptid_build (pid, 0, status.tid); in procfs_find_new_threads()
250 if (!in_thread_list (ptid)) in procfs_find_new_threads()
251 add_thread (ptid); in procfs_find_new_threads()
544 do_attach (ptid_t ptid) in do_attach() argument
[all …]
Dinftarg.c105 child_wait (ptid_t ptid, struct target_waitstatus *ourstatus) in child_wait() argument
166 child_post_wait (ptid_t ptid, int wait_status) in child_post_wait() argument
183 child_thread_alive (ptid_t ptid) in child_thread_alive() argument
185 pid_t pid = PIDGET (ptid); in child_thread_alive()
373 child_post_startup_inferior (ptid_t ptid) in child_post_startup_inferior() argument
609 child_pid_to_str (ptid_t ptid) in child_pid_to_str() argument
611 return normal_pid_to_str (ptid); in child_pid_to_str()
Dinferior.h81 int ptid_get_pid (ptid_t ptid);
84 long ptid_get_lwp (ptid_t ptid);
87 long ptid_get_tid (ptid_t ptid);
292 extern void get_last_target_status(ptid_t *ptid,
Dtarget.c1596 normal_pid_to_str (ptid_t ptid) in normal_pid_to_str() argument
1600 sprintf (buf, "process %d", PIDGET (ptid)); in normal_pid_to_str()
1699 debug_to_resume (ptid_t ptid, int step, enum target_signal siggnal) in debug_to_resume() argument
1701 debug_target.to_resume (ptid, step, siggnal); in debug_to_resume()
1703 fprintf_unfiltered (gdb_stdlog, "target_resume (%d, %s, %s)\n", PIDGET (ptid), in debug_to_resume()
1709 debug_to_wait (ptid_t ptid, struct target_waitstatus *status) in debug_to_wait() argument
1713 retval = debug_target.to_wait (ptid, status); in debug_to_wait()
1716 "target_wait (%d, status) = %d, ", PIDGET (ptid), in debug_to_wait()
1757 debug_to_post_wait (ptid_t ptid, int status) in debug_to_post_wait() argument
1759 debug_target.to_post_wait (ptid, status); in debug_to_post_wait()
[all …]
Dregcache.c1162 read_register_pid (int regnum, ptid_t ptid) in read_register_pid() argument
1168 if (ptid_equal (ptid, inferior_ptid)) in read_register_pid()
1173 inferior_ptid = ptid; in read_register_pid()
1196 write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid) in write_register_pid() argument
1200 if (ptid_equal (ptid, inferior_ptid)) in write_register_pid()
1208 inferior_ptid = ptid; in write_register_pid()
1320 read_pc_pid (ptid_t ptid) in read_pc_pid() argument
1327 inferior_ptid = ptid; in read_pc_pid()
1330 pc_val = TARGET_READ_PC (ptid); in read_pc_pid()
1334 CORE_ADDR raw_val = read_register_pid (PC_REGNUM, ptid); in read_pc_pid()
[all …]
Di386fbsd-nat.c40 child_resume (ptid_t ptid, int step, enum target_signal signal) in child_resume() argument
42 pid_t pid = ptid_get_pid (ptid); in child_resume()
Dprocfs.c3382 static ptid_t do_attach (ptid_t ptid);
3569 do_attach (ptid_t ptid) in do_attach() argument
3574 if ((pi = create_procinfo (PIDGET (ptid), 0)) == NULL) in do_attach()
3581 PIDGET (ptid)); in do_attach()
3882 procfs_wait (ptid_t ptid, struct target_waitstatus *status) in procfs_wait() argument
4054 target_resume (ptid, 0, TARGET_SIGNAL_0); in procfs_wait()
4468 procfs_resume (ptid_t ptid, int step, enum target_signal signo) in procfs_resume() argument
4510 if (PIDGET (ptid) != -1) in procfs_resume()
4513 thread = find_procinfo (PIDGET (ptid), TIDGET (ptid)); in procfs_resume()
4577 procfs_notice_signals (ptid_t ptid) in procfs_notice_signals() argument
[all …]
Dregcache.h249 extern ULONGEST read_register_pid (int regnum, ptid_t ptid);
253 extern void write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid);
Dremote.c84 static void remote_resume (ptid_t ptid, int step,
86 static void remote_async_resume (ptid_t ptid, int step,
119 static ptid_t remote_wait (ptid_t ptid,
121 static ptid_t remote_async_wait (ptid_t ptid,
1092 remote_thread_alive (ptid_t ptid) in remote_thread_alive() argument
1094 int tid = PIDGET (ptid); in remote_thread_alive()
1755 ptid_t ptid; in remote_newthread_step() local
1757 ptid = pid_to_ptid (threadref_to_int (ref)); in remote_newthread_step()
1759 if (!in_thread_list (ptid)) in remote_newthread_step()
1760 add_thread (ptid); in remote_newthread_step()
[all …]
Dremote-sim.c94 static void gdbsim_resume (ptid_t ptid, int step, enum target_signal siggnal);
96 static ptid_t gdbsim_wait (ptid_t ptid, struct target_waitstatus *status);
603 gdbsim_resume (ptid_t ptid, int step, enum target_signal siggnal) in gdbsim_resume() argument
665 gdbsim_wait (ptid_t ptid, struct target_waitstatus *status) in gdbsim_wait() argument
Dinfptrace.c202 ptrace_wait (ptid_t ptid, int *status) in ptrace_wait() argument
242 child_resume (ptid_t ptid, int step, enum target_signal signal) in child_resume() argument
244 int pid = PIDGET (ptid); in child_resume()
Dppc-bdm.c43 static ptid_t bdm_ppc_wait (ptid_t ptid,
102 bdm_ppc_wait (ptid_t ptid, struct target_waitstatus *target_status) in bdm_ppc_wait() argument
/freebsd-9-stable/gnu/usr.bin/gdb/libgdb/
Dfbsd-threads.c153 static int fbsd_thread_alive (ptid_t ptid);
154 static void attach_thread (ptid_t ptid, const td_thrhandle_t *th_p,
160 #define GET_PID(ptid) ptid_get_pid (ptid) argument
161 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
162 #define GET_THREAD(ptid) ptid_get_tid (ptid) argument
164 #define IS_LWP(ptid) (GET_LWP (ptid) != 0) argument
165 #define IS_THREAD(ptid) (GET_THREAD (ptid) != 0) argument
252 thread_from_lwp (ptid_t ptid, td_thrhandle_t *th, td_thrinfo_t *ti) in thread_from_lwp() argument
256 gdb_assert (IS_LWP (ptid)); in thread_from_lwp()
260 err = td_ta_map_lwp2thr_p (thread_agent, GET_LWP (ptid), th); in thread_from_lwp()
[all …]
/freebsd-9-stable/gnu/usr.bin/gdb/kgdb/
Dtrgt.c193 return (kgdb_thr_extra_thread_info(ptid_get_pid(ti->ptid))); in kgdb_trgt_extra_thread_info()
219 kgdb_trgt_pid_to_str(ptid_t ptid) in kgdb_trgt_pid_to_str() argument
223 snprintf(buf, sizeof(buf), "Thread %d", ptid_get_pid(ptid)); in kgdb_trgt_pid_to_str()
228 kgdb_trgt_thread_alive(ptid_t ptid) in kgdb_trgt_thread_alive() argument
230 return (kgdb_thr_lookup_tid(ptid_get_pid(ptid)) != NULL); in kgdb_trgt_thread_alive()
/freebsd-9-stable/contrib/gdb/gdb/config/
Dnm-lynx.h75 extern ptid_t child_wait (ptid_t ptid,
84 extern char *lynx_pid_to_str (ptid_t ptid);
/freebsd-9-stable/contrib/sendmail/libmilter/
Dlibmilter.h131 # define thread_create(ptid,wr,arg) pthread_create(ptid, NULL, wr, arg) argument

123