GDB (xrefs)
Functions | Variables
ptid.c File Reference
#include "common-defs.h"
#include "ptid.h"

Go to the source code of this file.

Functions

ptid_t ptid_build (int pid, long lwp, long tid)
 
ptid_t pid_to_ptid (int pid)
 
int ptid_get_pid (ptid_t ptid)
 
long ptid_get_lwp (ptid_t ptid)
 
long ptid_get_tid (ptid_t ptid)
 
int ptid_equal (ptid_t ptid1, ptid_t ptid2)
 
int ptid_is_pid (ptid_t ptid)
 
int ptid_lwp_p (ptid_t ptid)
 
int ptid_tid_p (ptid_t ptid)
 
int ptid_match (ptid_t ptid, ptid_t filter)
 

Variables

ptid_t null_ptid = { 0, 0, 0 }
 
ptid_t minus_one_ptid = { -1, 0, 0 }
 

Function Documentation

ptid_t pid_to_ptid ( int  pid)
ptid_t ptid_build ( int  pid,
long  lwp,
long  tid 
)
int ptid_equal ( ptid_t  ptid1,
ptid_t  ptid2 
)

Definition at line 76 of file ptid.c.

References ptid::lwp, ptid::pid, and ptid::tid.

Referenced by ada_get_task_number(), add_current_inferior_and_thread(), add_thread_silent(), agent_run_command(), append_pending_thread_resumptions(), append_resumption(), bpstat_clear_actions(), bpstat_do_actions(), breakpoint_about_to_proceed(), call_function_by_hand_dummy(), child_terminal_info(), clear_inline_frame_state(), clear_proceed_status(), context_switch(), core_open(), darwin_create_inferior(), darwin_kill_inferior(), darwin_resume(), darwin_wait(), dcache_info_1(), dcache_read_memory_partial(), default_child_has_all_memory(), default_child_has_execution(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), delete_checkpoint_command(), delete_fork(), delete_lwp(), delete_thread_1(), detach_checkpoint_command(), detach_command(), displaced_step_fixup(), displaced_step_in_progress(), displaced_step_prepare(), display_tib(), do_captured_list_thread_ids(), do_restore_current_thread_cleanup(), dtrace_disable_probe(), dtrace_enable_probe(), dummy_frame_id_eq(), ensure_valid_thread(), fetch_inferior_event(), find_fork_ptid(), find_thread_object(), find_thread_ptid(), finish_command_continuation(), finish_thread_state(), follow_exec(), follow_fork(), for_each_just_stopped_thread(), gdbsim_create_inferior(), gdbsim_resume(), gdbsim_stop(), gdbsim_thread_alive(), gdbsim_wait(), generic_mourn_inferior(), get_current_frame(), get_current_thread(), get_displaced_step_closure_by_addr(), get_task_from_args(), get_thread_arch_aspace_regcache(), get_thread_arch_regcache(), get_thread_regcache(), gnu_resume(), gnu_wait(), go32_thread_alive(), handle_inferior_event_1(), handle_signal_stop(), handle_syscall_event(), has_stack_frames(), in_thread_list(), inf_ptrace_resume(), inf_validate_procs(), inferior_call_waitpid(), inferior_event_handler(), info_checkpoints_command(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_region_command(), infrun_thread_ptid_changed(), infrun_thread_stop_requested_callback(), infrun_thread_thread_exit(), insert_breakpoint_locations(), kill_command(), kill_if_already_running(), linux_nat_resume(), linux_nat_wait(), linux_nat_wait_1(), linux_nat_xfer_partial(), m32r_pid_to_str(), m32r_thread_alive(), make_cleanup_restore_current_thread(), memory_xfer_partial_1(), mi_about_to_proceed(), mi_cmd_var_update_iter(), mi_execute_command(), mi_on_resume(), mips_error(), mips_pid_to_str(), mips_thread_alive(), monitor_pid_to_str(), monitor_thread_alive(), normal_stop(), notice_new_inferior(), pid_to_thread_id(), pop_dummy_frame(), ppc_linux_spe_context(), prepare_for_detach(), print_ada_task_info(), print_one_catch_fork(), print_one_catch_vfork(), print_thread_info(), proc_set_current_signal(), process_stop_reply(), procfs_kill_inferior(), procfs_mourn_inferior(), procfs_resume(), procfs_store_registers(), procfs_wait(), program_info(), ptid_is_pid(), ptid_lwp_p(), ptid_match(), ptid_tid_p(), ravenscar_fetch_registers(), ravenscar_prepare_to_store(), ravenscar_runtime_initialized(), ravenscar_store_registers(), ravenscar_update_inferior_ptid(), raw_memory_xfer_partial(), read_ptid(), record_btrace_find_resume_thread(), regcache_thread_ptid_changed(), remote_notice_new_inferior(), remote_parse_stop_reply(), remote_pid_to_str(), remote_read_description(), remote_resume(), remote_start_remote(), remote_stop_ns(), remote_thread_always_alive(), remote_threads_extra_info(), remote_update_thread_list(), remote_vcont_resume(), remote_wait_as(), resume_cleanups(), run_inferior_call(), set_enable_mach_exceptions(), set_executing(), set_running(), set_sig_thread_cmd(), set_stop_requested(), set_thread(), siginfo_make_value(), signal_command(), sol_thread_wait(), stop_reply_match_ptid_and_ws(), switch_to_thread(), thread_command(), thread_db_resume(), thread_name_command(), threads_listing_context_remove(), tlb_make_value(), tui_make_status_line(), update_inserted_breakpoint_locations(), update_solib_list(), validate_siginfo_access(), VEC(), watchpoint_in_thread_scope(), and windows_resume().

long ptid_get_lwp ( ptid_t  ptid)

Definition at line 60 of file ptid.c.

References ptid::lwp.

Referenced by aarch64_linux_prepare_to_resume(), aix_thread_resume(), amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), arm_linux_prepare_to_resume(), arm_linux_read_description(), attach_proc_task_lwp_callback(), can_use_watchpoint_cond_accel(), check_ptrace_stopped_lwp_gone(), checkpoint_command(), core_pid_to_str(), cur_thread(), detach_callback(), fetch_inferior_registers(), fetch_ppc_memory(), fetch_ppc_register(), fetch_register(), find_lwp_pid(), gdbpy_create_ptid_object(), get_core_register_section(), get_core_siginfo(), get_pending_status(), get_ptrace_pid(), get_thread_id(), gnu_fetch_registers(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), gnu_thread_alive(), gnu_wait(), i386_linux_fetch_inferior_registers(), i386_linux_resume(), i386_linux_store_inferior_registers(), i386_windows_core_pid_to_str(), ia64_linux_fetch_register(), ia64_linux_store_register(), inf_ptrace_fetch_register(), inf_ptrace_store_register(), info_task(), kill_callback(), kill_wait_callback(), lin_lwp_attach_lwp(), linux_child_follow_fork(), linux_collect_thread_registers(), linux_common_core_of_thread(), linux_core_pid_to_str(), linux_handle_extended_wait(), linux_handle_syscall_trap(), linux_nat_attach(), linux_nat_filter_event(), linux_nat_get_siginfo(), linux_nat_pid_to_str(), linux_nat_post_attach_wait(), linux_nat_stop_lwp(), linux_nat_thread_address_space(), linux_nat_thread_name(), linux_nat_xfer_partial(), linux_ptrace_attach_fail_reason_string(), linux_thread_alive(), linux_xfer_siginfo(), lwp_to_thread(), m32r_linux_fetch_inferior_registers(), m32r_linux_store_inferior_registers(), m68k_linux_fetch_inferior_registers(), m68k_linux_store_inferior_registers(), maybe_clear_ignore_sigint(), mips64_linux_regsets_fetch_registers(), mips64_linux_regsets_store_registers(), mips_linux_can_use_hw_breakpoint(), mips_linux_insert_watchpoint(), mips_linux_new_thread(), mips_linux_read_description(), mips_linux_region_ok_for_hw_watchpoint(), mips_linux_stopped_by_watchpoint(), ppc_linux_can_use_hw_breakpoint(), ppc_linux_fetch_inferior_registers(), ppc_linux_insert_hw_breakpoint(), ppc_linux_insert_mask_watchpoint(), ppc_linux_insert_watchpoint(), ppc_linux_new_thread(), ppc_linux_read_description(), ppc_linux_remove_hw_breakpoint(), ppc_linux_remove_mask_watchpoint(), ppc_linux_remove_watchpoint(), ppc_linux_stopped_data_address(), ppc_linux_store_inferior_registers(), ppc_linux_target_wordsize(), ppc_linux_thread_exit(), print_target_wait_results(), procfs_fetch_registers(), procfs_pid_to_str(), procfs_resume(), procfs_store_registers(), procfs_thread_alive(), procfs_wait(), ptid_cmp(), ptid_is_pid(), ptid_lwp_p(), remote_pid_to_str(), remote_thread_always_alive(), remote_threads_extra_info(), s390_inferior_tid(), s390_prepare_to_resume(), set_sig_thread_cmd(), sol2_core_pid_to_str(), solaris_pid_to_str(), sparc_fetch_inferior_registers(), sparc_store_inferior_registers(), spu_child_post_startup_inferior(), stop_and_resume_callback(), stop_callback(), stop_wait_callback(), store_debug_register(), store_inferior_registers(), store_ppc_memory(), store_register(), thread_db_pid_to_str(), thread_from_lwp(), VEC(), wait_lwp(), write_ptid(), write_watchpoint_regs(), x86_linux_dr_get(), x86_linux_dr_set(), and x86_linux_read_description().

int ptid_get_pid ( ptid_t  ptid)

Definition at line 52 of file ptid.c.

References ptid::pid.

Referenced by aarch64_handle_aligned_watchpoint(), aarch64_handle_breakpoint(), aarch64_handle_unaligned_watchpoint(), aarch64_linux_child_post_startup_inferior(), aarch64_linux_insert_hw_breakpoint(), aarch64_linux_insert_watchpoint(), aarch64_linux_new_fork(), aarch64_linux_prepare_to_resume(), aarch64_linux_remove_hw_breakpoint(), aarch64_linux_remove_watchpoint(), aarch64_linux_stopped_data_address(), aarch64_notify_debug_reg_change(), ada_exception_support_info_sniffer(), add_current_inferior_and_thread(), add_fork(), add_thread_db_info(), aix_thread_get_ada_task_ptid(), aix_thread_resume(), aix_thread_wait(), aix_thread_xfer_partial(), alphabsd_fetch_inferior_registers(), alphabsd_store_inferior_registers(), amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), amd64bsd_fetch_inferior_registers(), amd64bsd_store_inferior_registers(), amd64fbsd_read_description(), any_live_thread_of_process(), any_thread_of_process(), append_resumption(), arm_linux_insert_hw_breakpoint1(), arm_linux_new_fork(), arm_linux_prepare_to_resume(), arm_linux_remove_hw_breakpoint1(), attach_command(), attach_command_post_wait(), attach_thread(), bsd_uthread_pid_to_str(), bsd_uthread_update_thread_list(), bsd_uthread_wait(), check_event(), check_for_thread_db(), check_pid_namespace_match(), checkpoint_command(), child_terminal_init(), clear_inline_frame_state(), cmd_record_save(), collect_cores(), common_open(), core_close(), create_thread_object(), darwin_detach(), darwin_get_ada_task_ptid(), darwin_pid_to_str(), darwin_resume(), darwin_wait(), default_get_ada_task_ptid(), delete_checkpoint_command(), delete_fork(), delete_thread_object(), delete_thread_of_inferior(), detach_breakpoints(), detach_callback(), detach_checkpoint_command(), discard_pending_stop_replies(), displaced_step_fixup(), displaced_step_prepare(), do_attach(), do_detach(), do_target_resume(), enable_thread_event(), enable_thread_event_reporting(), extended_remote_kill(), fbsd_collect_regset_section_cb(), fbsd_find_memory_regions(), fetch_fp_register(), fetch_fp_regs(), fetch_inferior_registers(), fetch_ppc_memory(), fetch_ppc_register(), fetch_register(), fetch_regs(), find_fork_pid(), find_inferior_ptid(), find_lwp_pid(), find_signalled_thread(), find_thread_needs_step_over(), find_thread_object(), find_thread_of_process(), finish_thread_state(), first_thread_of_process(), follow_exec(), follow_fork_inferior(), fork_save_infrun_state(), gcore_command(), gdbpy_create_ptid_object(), gdbsim_create_inferior(), gdbsim_stop(), gdbsim_wait(), generic_mourn_inferior(), get_displaced_step_closure_by_addr(), get_ptrace_pid(), get_signaled_thread(), get_sim_inferior_data_by_ptid(), get_thread_id(), gnu_resume(), handle_inferior_event_1(), have_threads(), have_threads_callback(), hppanbsd_fetch_registers(), hppanbsd_store_registers(), hppaobsd_fetch_registers(), hppaobsd_store_registers(), i386_linux_fetch_inferior_registers(), i386_linux_store_inferior_registers(), i386bsd_fetch_inferior_registers(), i386bsd_store_inferior_registers(), i386fbsd_resume(), ia64_linux_fetch_register(), ia64_linux_store_register(), inf_has_multiple_thread_cb(), inf_ptrace_detach(), inf_ptrace_fetch_register(), inf_ptrace_kill(), inf_ptrace_mourn_inferior(), inf_ptrace_resume(), inf_ptrace_store_register(), inf_ptrace_thread_alive(), inf_ptrace_wait(), inf_ptrace_xfer_partial(), inferior_command(), infrun_thread_stop_requested_callback(), insert_catch_exec(), insert_catch_fork(), insert_catch_syscall(), insert_catch_vfork(), interrupt_thread_callback(), is_pending_fork_parent(), kill_child_of_pending_fork(), kill_new_fork_children(), linux_child_post_startup_inferior(), linux_common_core_of_thread(), linux_corefile_thread_callback(), linux_fill_prpsinfo(), linux_fork_detach(), linux_fork_killall(), linux_fork_mourn_inferior(), linux_handle_extended_wait(), linux_make_corefile_notes(), linux_nat_attach(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_get_siginfo(), linux_nat_kill(), linux_nat_mourn_inferior(), linux_nat_pid_to_str(), linux_nat_switch_fork(), linux_nat_thread_address_space(), linux_nat_thread_name(), linux_nat_wait_1(), linux_proc_xfer_partial(), linux_proc_xfer_spu(), linux_xfer_siginfo(), lwp_to_thread(), m32r_linux_fetch_inferior_registers(), m32r_linux_store_inferior_registers(), m68k_linux_fetch_inferior_registers(), m68k_linux_store_inferior_registers(), m68kbsd_fetch_inferior_registers(), m68kbsd_store_inferior_registers(), m88kbsd_fetch_inferior_registers(), m88kbsd_store_inferior_registers(), mi_on_resume(), mi_output_running_pid(), mips64_linux_regsets_fetch_registers(), mips64_linux_regsets_store_registers(), mips64obsd_fetch_inferior_registers(), mips64obsd_store_inferior_registers(), mips_linux_read_description(), mipsnbsd_fetch_inferior_registers(), mipsnbsd_store_inferior_registers(), monitor_close(), monitor_open(), normal_pid_to_str(), num_lwps(), pass_signal(), pid_to_prc(), ppc_linux_can_use_hw_breakpoint(), ppc_linux_fetch_inferior_registers(), ppc_linux_read_description(), ppc_linux_store_inferior_registers(), ppc_linux_target_wordsize(), ppcfbsd_fetch_inferior_registers(), ppcfbsd_store_inferior_registers(), ppcnbsd_fetch_inferior_registers(), ppcnbsd_store_inferior_registers(), ppcobsd_fetch_registers(), ppcobsd_store_registers(), print_it_catch_fork(), print_it_catch_vfork(), print_one_catch_fork(), print_one_catch_vfork(), print_target_wait_results(), print_thread_info(), proc_find_memory_regions(), proc_trace_syscalls(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), procfs_detach(), procfs_fetch_registers(), procfs_inferior_created(), procfs_info_proc(), procfs_kill_inferior(), procfs_mourn_inferior(), procfs_pass_signals(), procfs_pid_to_str(), procfs_resume(), procfs_set_watchpoint(), procfs_stopped_by_watchpoint(), procfs_stopped_data_address(), procfs_store_registers(), procfs_thread_alive(), procfs_update_thread_list(), procfs_wait(), procfs_xfer_auxv(), procfs_xfer_memory(), ps_getpid(), ps_lgetfpregs(), ps_lgetregs(), ps_lsetfpregs(), ps_lsetregs(), ptid_cmp(), ptid_match(), purge_lwp_list(), ravenscar_get_ada_task_ptid(), ravenscar_running_thread(), read_ptid(), remote_detach_1(), remote_follow_fork(), remote_get_ada_task_ptid(), remote_newthread_step(), remote_notice_new_inferior(), remote_parse_stop_reply(), remote_pid_to_str(), remote_stop_ns(), remote_thread_always_alive(), remote_threads_extra_info(), remove_catch_exec(), remove_catch_fork(), remove_catch_syscall(), remove_catch_vfork(), remove_stop_reply_for_inferior(), resume(), rs6000_ptrace_ldinfo(), rs6000_wait(), rs6000_xfer_partial(), run_command_1(), run_one_inferior(), s390_inferior_tid(), s390_prepare_to_resume(), set_executing(), set_general_process(), set_running(), set_stop_requested(), shnbsd_fetch_inferior_registers(), shnbsd_store_inferior_registers(), sol_thread_detach(), sol_thread_resume(), sol_thread_wait(), sol_update_thread_list_callback(), solaris_pid_to_str(), sparc_fetch_inferior_registers(), sparc_store_inferior_registers(), sparc_xfer_wcookie(), spu_child_post_startup_inferior(), spu_child_wait(), spu_memory_remove_breakpoint(), spu_proc_xfer_spu(), startup_inferior(), store_debug_register(), store_fp_register(), store_fp_regs(), store_inferior_registers(), store_ppc_memory(), store_register(), store_regs(), switch_back_to_stepped_thread(), sync_threadlists(), target_detach(), tfile_close(), thread_change_ptid(), thread_db_detach(), thread_db_find_new_threads_2(), thread_db_get_ada_task_ptid(), thread_db_get_thread_local_address(), thread_db_load(), thread_db_mourn_inferior(), thread_db_notice_clone(), thread_db_resume(), thread_db_wait(), thread_from_lwp(), thread_to_lwp(), try_thread_db_load(), try_thread_db_load_1(), user_visible_resume_ptid(), vaxbsd_fetch_inferior_registers(), vaxbsd_store_inferior_registers(), VEC(), wait_lwp(), windows_close(), windows_get_ada_task_ptid(), windows_pid_to_str(), windows_resume(), write_ptid(), x86_cleanup_dregs(), x86_insert_hw_breakpoint(), x86_insert_watchpoint(), x86_linux_dr_set_addr(), x86_linux_dr_set_control(), x86_linux_new_fork(), x86_linux_read_description(), x86_linux_update_debug_registers(), x86_region_ok_for_watchpoint(), x86_remove_hw_breakpoint(), x86_remove_watchpoint(), x86_stopped_by_watchpoint(), and x86_stopped_data_address().

long ptid_get_tid ( ptid_t  ptid)
int ptid_is_pid ( ptid_t  ptid)
int ptid_lwp_p ( ptid_t  ptid)
int ptid_match ( ptid_t  ptid,
ptid_t  filter 
)
int ptid_tid_p ( ptid_t  ptid)

Variable Documentation

ptid_t minus_one_ptid = { -1, 0, 0 }
ptid_t null_ptid = { 0, 0, 0 }

Definition at line 25 of file ptid.c.

Referenced by _initialize_infrun(), _initialize_ravenscar(), add_current_inferior_and_thread(), add_inferior_command(), add_thread_silent(), agent_run_command(), bpstat_clear_actions(), bpstat_do_actions(), breakpoint_about_to_proceed(), bsd_kvm_close(), child_terminal_info(), clear_proceed_status(), clone_inferior_command(), core_close(), core_open(), create_fork_vfork_event_catchpoint(), darwin_create_inferior(), darwin_get_ada_task_ptid(), darwin_kill_inferior(), dcache_info_1(), dcache_init(), dcache_invalidate(), default_child_has_all_memory(), default_child_has_execution(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), detach_command(), displaced_step_clear(), displaced_step_fixup(), displaced_step_in_progress(), displaced_step_prepare(), display_tib(), do_restore_current_thread_cleanup(), dtrace_disable_probe(), dtrace_enable_probe(), ensure_valid_thread(), fetch_inferior_event(), finish_command_continuation(), for_each_just_stopped_thread(), gdbsim_open(), generic_mourn_inferior(), get_current_frame(), get_current_thread(), get_displaced_step_closure_by_addr(), get_task_from_args(), get_thread_arch_regcache(), gnu_detach(), go32_mourn_inferior(), go32_thread_alive(), handle_vfork_child_exec_or_exit(), has_stack_frames(), inf_ptrace_detach(), inferior_command(), inferior_event_handler(), info_mach_exceptions_command(), info_mach_ports_command(), info_mach_region_command(), insert_breakpoint_locations(), kill_command(), kill_if_already_running(), linux_nat_xfer_partial(), m32r_close(), m32r_kill(), m32r_load(), m32r_upload_command(), make_cleanup_restore_current_thread(), memory_xfer_partial_1(), mi_about_to_proceed(), mi_cmd_execute(), mi_cmd_remove_inferior(), mi_cmd_var_update_iter(), mi_execute_command(), mips_error(), normal_stop(), notice_new_inferior(), prepare_for_detach(), print_one_catch_fork(), print_one_catch_vfork(), print_thread_info(), process_stop_reply(), procfs_detach(), procfs_kill_inferior(), procfs_mourn_inferior(), procfs_resume(), procfs_store_registers(), procfs_wait(), program_info(), ravenscar_mourn_inferior(), ravenscar_running_thread(), ravenscar_runtime_initialized(), ravenscar_update_inferior_ptid(), raw_memory_xfer_partial(), read_atcb(), read_ptid(), registers_changed_ptid(), remote_close(), remote_detach_1(), remote_parse_stop_reply(), remote_pid_to_str(), remote_read_description(), remote_start_remote(), remote_update_thread_list(), remote_wait_as(), resume_cleanups(), run_one_inferior(), sdireset_command(), set_enable_mach_exceptions(), siginfo_make_value(), stop_reply_extract_thread(), switch_to_program_space_and_thread(), switch_to_thread(), tfile_close(), thread_command(), thread_name_command(), tlb_make_value(), tui_make_status_line(), update_inserted_breakpoint_locations(), update_solib_list(), validate_siginfo_access(), watch_command_1(), watchpoint_in_thread_scope(), and windows_detach().