Home
last modified time | relevance | path

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

12345678910>>...45

/dports/devel/gdb/gdb-11.1/gdb/
H A Dravenscar-thread.c127 ptid = get_base_thread_from_ravenscar_task (ptid); in enable_btrace()
182 return ptid.lwp () == 0 && ptid.tid () != 0; in is_ravenscar_task()
215 base_cpu = ptid.lwp (); in get_thread_base_cpu()
251 return ptid; in get_base_thread_from_ravenscar_task()
375 if (ptid.is_pid ()) in resume()
378 ptid = minus_one_ptid; in resume()
381 ptid = m_base_ptid; in resume()
395 ptid = m_base_ptid; in wait()
506 ptid_t ptid = regcache->ptid (); in fetch_registers() local
533 ptid_t ptid = regcache->ptid (); in store_registers() local
[all …]
H A Dlinux-nat.c695 return entry->ptid.lwp () == element->ptid.lwp (); in lwp_lwpid_htab_eq()
878 lp->ptid = ptid; in add_initial_lwp()
919 dummy.ptid = ptid; in delete_lwp()
1439 if (lp->ptid.lwp () != lp->ptid.pid ()) in detach_callback()
2139 if (lp->ptid.pid () == lp->ptid.lwp () in wait_lwp()
2171 || lp->ptid.pid () == lp->ptid.lwp ()) in wait_lwp()
3117 ptid_t ptid = event_child->ptid; in filter_exit_event() local
3274 if (ptid == minus_one_ptid || ptid.is_pid ()) in linux_nat_wait_1()
3779 && (ptid.pid () != ptid.lwp () in pid_to_str()
3822 fd, ptid.pid (), ptid.lwp ()); in close()
[all …]
H A Dbsd-uthread.c322 ptid_t ptid = regcache->ptid (); in fetch_registers() local
329 inferior_ptid = ptid; in fetch_registers()
354 ptid_t ptid = regcache->ptid (); in store_registers() local
361 inferior_ptid = ptid; in store_registers()
388 ptid = beneath->wait (ptid, status, options); in wait()
394 return ptid; in wait()
411 ptid = ptid_t (ptid.pid (), 0, addr); in wait()
419 && ptid.tid () != 0 && !in_thread_list (beneath, ptid)) in wait()
427 return ptid; in wait()
540 if (ptid.tid () != 0) in pid_to_str()
[all …]
H A Damd64-bsd-nat.c41 gdb_ptrace (PTRACE_TYPE_ARG1 request, ptid_t ptid, PTRACE_TYPE_ARG3 addr, in gdb_ptrace() argument
48 return ptrace (request, ptid.pid (), addr, ptid.lwp ()); in gdb_ptrace()
50 pid_t pid = get_ptrace_pid (ptid); in gdb_ptrace()
62 ptid_t ptid = regcache->ptid (); in amd64bsd_fetch_inferior_registers() local
71 if (gdb_ptrace (PT_GETREGS, ptid, (PTRACE_TYPE_ARG3) &regs, 0) == -1) in amd64bsd_fetch_inferior_registers()
115 if (gdb_ptrace (PT_GETXSTATE, ptid, (PTRACE_TYPE_ARG3) xstateregs, 0) in amd64bsd_fetch_inferior_registers()
138 ptid_t ptid = regcache->ptid (); in amd64bsd_store_inferior_registers() local
148 if (gdb_ptrace (PT_GETREGS, ptid, (PTRACE_TYPE_ARG3) &regs, 0) == -1) in amd64bsd_store_inferior_registers()
159 if (gdb_ptrace (PT_SETREGS, ptid, (PTRACE_TYPE_ARG3) &regs, 0) == -1) in amd64bsd_store_inferior_registers()
206 if (gdb_ptrace (PT_GETXSTATE, ptid, (PTRACE_TYPE_ARG3) xstateregs, 0) in amd64bsd_store_inferior_registers()
[all …]
H A Di386-bsd-nat.c45 return ptrace (request, ptid.pid (), addr, ptid.lwp ()); in gdb_ptrace()
47 pid_t pid = get_ptrace_pid (ptid); in gdb_ptrace()
148 ptid_t ptid = regcache->ptid (); in i386bsd_fetch_inferior_registers() local
202 if (gdb_ptrace (PT_GETXSTATE, ptid, in i386bsd_fetch_inferior_registers()
213 && gdb_ptrace(PT_GETXMMREGS, ptid, in i386bsd_fetch_inferior_registers()
223 if (gdb_ptrace (PT_GETFPREGS, ptid, in i386bsd_fetch_inferior_registers()
240 ptid_t ptid = regcache->ptid (); in i386bsd_store_inferior_registers() local
298 if (gdb_ptrace (PT_GETXSTATE, ptid, in i386bsd_store_inferior_registers()
313 && gdb_ptrace(PT_GETXMMREGS, ptid, in i386bsd_store_inferior_registers()
328 if (gdb_ptrace (PT_GETFPREGS, ptid, in i386bsd_store_inferior_registers()
[all …]
H A Dinf-ptrace.c46 pid_t pid = get_ptrace_pid (ptid); in gdb_ptrace()
93 ptid_t ptid (pid); in create_inferior()
106 target_post_startup_inferior (ptid); in create_inferior()
182 set_executing (this, thr->ptid, true); in attach()
245 get_ptrace_pid (ptid_t ptid) in get_ptrace_pid() argument
251 pid = ptid.lwp (); in get_ptrace_pid()
253 pid = ptid.pid (); in get_ptrace_pid()
267 if (minus_one_ptid == ptid) in resume()
270 ptid = ptid_t (inferior_ptid.pid ()); in resume()
416 ptid_t ptid = inferior_ptid; in xfer_partial() local
[all …]
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gdb/gdb/
H A 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
188 lp->ptid = ptid; in add_lwp()
208 if (ptid_equal (lp->ptid, ptid)) in delete_lwp()
235 if (is_lwp (ptid)) in find_lwp_pid()
308 if (GET_LWP (ptid) != GET_PID (ptid) && found_lp == NULL) in lin_lwp_attach_lwp()
438 if (GET_LWP (lp->ptid) != GET_PID (lp->ptid)) in detach_callback()
537 ptid = pid_to_ptid (GET_LWP (lp->ptid)); in lin_lwp_resume()
1484 if (GET_PID (lp->ptid) == GET_LWP (lp->ptid)) in lin_lwp_wait()
[all …]
H A Dthread-db.c142 #define GET_PID(ptid) ptid_get_pid (ptid) argument
143 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
144 #define GET_THREAD(ptid) ptid_get_tid (ptid) argument
146 #define is_lwp(ptid) (GET_LWP (ptid) != 0) argument
147 #define is_thread(ptid) (GET_THREAD (ptid) != 0) argument
367 ptid = BUILD_LWP (GET_PID (ptid), GET_PID (ptid)); in thread_from_lwp()
870 ptid = lwp_from_thread (ptid); in thread_db_resume()
962 if (GET_PID (ptid) != -1 && is_thread (ptid)) in thread_db_wait()
963 ptid = lwp_from_thread (ptid); in thread_db_wait()
965 ptid = target_beneath->to_wait (ptid, ourstatus); in thread_db_wait()
[all …]
H A Duw-thread.c273 dbgpid (ptid_t ptid)
422 if (!ISTID (ptid)) in thr_to_lwp()
423 lid = ptid; in thr_to_lwp()
471 ptid_t tid = ptid; in lwp_to_thr()
473 if (ISTID (ptid)) in lwp_to_thr()
607 ptid = thr_to_lwp (ptid); in uw_thread_resume()
677 inferior_ptid = ptid; in libthread_stub()
742 ptid = thr_to_lwp (ptid); in uw_thread_wait()
746 CALL_BASE (ptid = base_ops.to_wait (ptid, status)); in uw_thread_wait()
846 if (!ISTID (ptid)) in uw_thread_alive()
[all …]
H A Dthread.c123 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()
177 if (ptid_equal (tp->ptid, ptid)) in find_thread_pid()
228 if (ptid_equal (tp->ptid, ptid)) in pid_to_thread_id()
239 return thread->ptid; in thread_id_to_pid()
245 in_thread_list (ptid_t ptid) in in_thread_list() argument
250 if (ptid_equal (tp->ptid, ptid)) in in_thread_list()
397 delete_thread (tp->ptid); in prune_threads()
[all …]
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gdb/gdb/
H A 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
188 lp->ptid = ptid; in add_lwp()
208 if (ptid_equal (lp->ptid, ptid)) in delete_lwp()
235 if (is_lwp (ptid)) in find_lwp_pid()
308 if (GET_LWP (ptid) != GET_PID (ptid) && found_lp == NULL) in lin_lwp_attach_lwp()
438 if (GET_LWP (lp->ptid) != GET_PID (lp->ptid)) in detach_callback()
537 ptid = pid_to_ptid (GET_LWP (lp->ptid)); in lin_lwp_resume()
1484 if (GET_PID (lp->ptid) == GET_LWP (lp->ptid)) in lin_lwp_wait()
[all …]
H A Dthread-db.c142 #define GET_PID(ptid) ptid_get_pid (ptid) argument
143 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
144 #define GET_THREAD(ptid) ptid_get_tid (ptid) argument
146 #define is_lwp(ptid) (GET_LWP (ptid) != 0) argument
147 #define is_thread(ptid) (GET_THREAD (ptid) != 0) argument
367 ptid = BUILD_LWP (GET_PID (ptid), GET_PID (ptid)); in thread_from_lwp()
870 ptid = lwp_from_thread (ptid); in thread_db_resume()
962 if (GET_PID (ptid) != -1 && is_thread (ptid)) in thread_db_wait()
963 ptid = lwp_from_thread (ptid); in thread_db_wait()
965 ptid = target_beneath->to_wait (ptid, ourstatus); in thread_db_wait()
[all …]
H A Duw-thread.c273 dbgpid (ptid_t ptid)
422 if (!ISTID (ptid)) in thr_to_lwp()
423 lid = ptid; in thr_to_lwp()
471 ptid_t tid = ptid; in lwp_to_thr()
473 if (ISTID (ptid)) in lwp_to_thr()
607 ptid = thr_to_lwp (ptid); in uw_thread_resume()
677 inferior_ptid = ptid; in libthread_stub()
742 ptid = thr_to_lwp (ptid); in uw_thread_wait()
746 CALL_BASE (ptid = base_ops.to_wait (ptid, status)); in uw_thread_wait()
846 if (!ISTID (ptid)) in uw_thread_alive()
[all …]
/dports/devel/avr-gdb/gdb-7.3.1/gdb/
H A Dthread.c179 tp->ptid = ptid; in new_thread()
222 tp->ptid = ptid; in add_thread_silent()
233 delete_thread (ptid); in add_thread_silent()
272 if (ptid_equal (tp->ptid, ptid)) in delete_thread_1()
346 if (ptid_equal (tp->ptid, ptid)) in find_thread_ptid()
412 if (ptid_equal (tp->ptid, ptid)) in pid_to_thread_id()
435 if (ptid_equal (tp->ptid, ptid)) in in_thread_list()
588 if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) in set_running()
673 if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) in set_executing()
693 if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) in set_stop_requested()
[all …]
H A Dlinux-thread-db.c431 info->proc_handle.ptid = ptid; in thread_from_lwp()
452 return ptid; in thread_from_lwp()
477 info->proc_handle.ptid = ptid; in thread_db_attach_lwp()
1166 info->proc_handle.ptid = ptid; in check_event()
1206 ptid = ptid_build (GET_PID (ptid), ti.ti_lid, 0); in check_event()
1241 ptid = beneath->to_wait (beneath, ptid, ourstatus, options); in thread_db_wait()
1244 return ptid; in thread_db_wait()
1288 ptid = thread_from_lwp (ptid); in thread_db_wait()
1293 return ptid; in thread_db_wait()
1325 ptid_t ptid; in find_new_threads_callback() local
[all …]
H A Dlinux-nat.c1192 lp->ptid = ptid; in add_lwp()
1214 if (ptid_equal (lp->ptid, ptid)) in delete_lwp()
1472 if (GET_LWP (ptid) != GET_PID (ptid) && lp == NULL) in lin_lwp_attach_lwp()
1583 ptid_t ptid; in linux_nat_attach() local
1753 if (GET_LWP (lp->ptid) != GET_PID (lp->ptid)) in detach_callback()
1999 ptid = pid_to_ptid (GET_LWP (lp->ptid)); in linux_nat_resume()
3159 if (GET_PID (lp->ptid) == GET_LWP (lp->ptid)) in linux_nat_filter_event()
3187 ptid_t ptid = pid_to_ptid (GET_PID (lp->ptid)); in linux_nat_filter_event() local
4086 && (GET_PID (ptid) != GET_LWP (ptid) in linux_nat_pid_to_str()
5542 ptid_t ptid = lwp->ptid; in linux_nat_stop_lwp() local
[all …]
H A Dgdbthread.h123 ptid_t ptid; /* "Actual process id"; member
236 extern struct thread_info *add_thread (ptid_t ptid);
266 extern int pid_to_thread_id (ptid_t ptid);
270 extern int in_thread_list (ptid_t ptid);
304 extern void switch_to_thread (ptid_t ptid);
308 extern void set_running (ptid_t ptid, int running);
333 extern int is_running (ptid_t ptid);
337 extern int is_exited (ptid_t ptid);
340 extern int is_stopped (ptid_t ptid);
354 extern int is_executing (ptid_t ptid);
[all …]
H A Dinline-frame.c40 ptid_t ptid; member
67 find_inline_frame_state (ptid_t ptid)
74 if (ptid_equal (state->ptid, ptid))
103 state->ptid = ptid; in allocate_inline_frame_state()
113 clear_inline_frame_state (ptid_t ptid) in clear_inline_frame_state() argument
124 if (ptid_is_pid (ptid)) in clear_inline_frame_state()
127 int pid = ptid_get_pid (ptid); in clear_inline_frame_state()
140 if (ptid_equal (state->ptid, ptid)) in clear_inline_frame_state()
302 skip_inline_frames (ptid_t ptid) in skip_inline_frames() argument
364 inline_skipped_frames (ptid_t ptid) in inline_skipped_frames() argument
[all …]
H A Dlinux-nat.h33 ptid_t ptid; member
107 for ((LP) = lwp_list, (PTID) = (LP)->ptid; \
109 (LP) = (LP)->next, (PTID) = (LP) ? (LP)->ptid : (PTID))
111 #define GET_LWP(ptid) ptid_get_lwp (ptid) argument
112 #define GET_PID(ptid) ptid_get_pid (ptid) argument
113 #define is_lwp(ptid) (GET_LWP (ptid) != 0) argument
119 int thread_db_attach_lwp (ptid_t ptid);
133 extern void linux_enable_event_reporting (ptid_t ptid);
135 extern int lin_lwp_attach_lwp (ptid_t ptid);
172 struct siginfo *linux_nat_get_siginfo (ptid_t ptid);
[all …]
/dports/devel/gdb761/gdb-7.6.1/gdb/
H A Dthread.c170 tp->ptid = ptid; in new_thread()
213 tp->ptid = ptid; in add_thread_silent()
224 delete_thread (ptid); in add_thread_silent()
263 if (ptid_equal (tp->ptid, ptid)) in delete_thread_1()
341 if (ptid_equal (tp->ptid, ptid)) in find_thread_ptid()
407 if (ptid_equal (tp->ptid, ptid)) in pid_to_thread_id()
430 if (ptid_equal (tp->ptid, ptid)) in in_thread_list()
583 if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) in set_running()
668 if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) in set_executing()
688 if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) in set_stop_requested()
[all …]
H A Dlinux-nat.c1205 lp->ptid = ptid; in add_initial_lwp()
1245 if (ptid_equal (lp->ptid, ptid)) in delete_lwp()
1603 ptid_t ptid; in linux_nat_attach() local
1798 if (GET_LWP (lp->ptid) != GET_PID (lp->ptid)) in detach_callback()
2071 ptid = pid_to_ptid (GET_LWP (lp->ptid)); in linux_nat_resume()
2559 if (GET_PID (lp->ptid) == GET_LWP (lp->ptid) in wait_lwp()
3132 ptid_t ptid = lp->ptid; in stop_and_resume_callback() local
3273 if (GET_PID (lp->ptid) == GET_LWP (lp->ptid)) in linux_nat_filter_event()
3301 ptid_t ptid = pid_to_ptid (GET_PID (lp->ptid)); in linux_nat_filter_event() local
3583 if (lp && !ptid_match (lp->ptid, ptid)) in linux_nat_wait_1()
[all …]
H A Dlinux-thread-db.c460 info->proc_handle.ptid = ptid; in thread_from_lwp()
494 info->proc_handle.ptid = ptid; in thread_db_attach_lwp()
1399 info->proc_handle.ptid = ptid; in check_event()
1439 ptid = ptid_build (GET_PID (ptid), ti.ti_lid, 0); in check_event()
1474 ptid = beneath->to_wait (beneath, ptid, ourstatus, options); in thread_db_wait()
1477 return ptid; in thread_db_wait()
1481 return ptid; in thread_db_wait()
1487 return ptid; in thread_db_wait()
1519 return ptid; in thread_db_wait()
1551 ptid_t ptid; in find_new_threads_callback() local
[all …]
H A Dgdbthread.h132 ptid_t ptid; /* "Actual process id"; member
242 extern struct thread_info *add_thread (ptid_t ptid);
272 extern int pid_to_thread_id (ptid_t ptid);
276 extern int in_thread_list (ptid_t ptid);
315 extern void switch_to_thread (ptid_t ptid);
319 extern void set_running (ptid_t ptid, int running);
344 extern int is_running (ptid_t ptid);
348 extern int is_exited (ptid_t ptid);
351 extern int is_stopped (ptid_t ptid);
365 extern int is_executing (ptid_t ptid);
[all …]
H A Dinline-frame.c41 ptid_t ptid; member
68 find_inline_frame_state (ptid_t ptid)
75 if (ptid_equal (state->ptid, ptid))
104 state->ptid = ptid; in allocate_inline_frame_state()
114 clear_inline_frame_state (ptid_t ptid) in clear_inline_frame_state() argument
125 if (ptid_is_pid (ptid)) in clear_inline_frame_state()
128 int pid = ptid_get_pid (ptid); in clear_inline_frame_state()
141 if (ptid_equal (state->ptid, ptid)) in clear_inline_frame_state()
303 skip_inline_frames (ptid_t ptid) in skip_inline_frames() argument
365 inline_skipped_frames (ptid_t ptid) in inline_skipped_frames() argument
[all …]
/dports/devel/gdb761/gdb-7.6.1/gdb/common/
H A Dptid.c31 ptid_t ptid; in ptid_build() local
33 ptid.pid = pid; in ptid_build()
34 ptid.lwp = lwp; in ptid_build()
35 ptid.tid = tid; in ptid_build()
36 return ptid; in ptid_build()
50 ptid_get_pid (ptid_t ptid) in ptid_get_pid() argument
52 return ptid.pid; in ptid_get_pid()
60 return ptid.lwp; in ptid_get_lwp()
68 return ptid.tid; in ptid_get_tid()
84 ptid_is_pid (ptid_t ptid) in ptid_is_pid() argument
[all …]

12345678910>>...45