GDBserver

Classes | Functions | Variables
ptid.h File Reference

Go to the source code of this file.

## Classes
class | ptid_t

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

## Variables
ptid_t | null_ptid
ptid_t | minus_one_ptid

## Function Documentation

## ◆ pid_to_ptid()

ptid_t pid_to_ptid | ( | int | pid | ) |

Definition at line 39 of file ptid.c.

Referenced by aarch64_notify_debug_reg_change(), attach_inferior(), check_zombie_leaders(), detach_or_kill_for_exit(), handle_detach(), handle_v_kill(), kill_inferior_callback(), linux_attach(), linux_detach(), linux_kill(), linux_low_filter_event(), maybe_attach_thread(), ppc_get_thread_area(), ps_lgetregs(), spu_wait(), startup_inferior(), win32_wait(), x86_get_thread_area(), x86_linux_dr_set_addr(), and x86_linux_dr_set_control().

## ◆ ptid_build()

ptid_t ptid_build | ( | int | pid,
|  | long | lwp,
|  | long | tid
| ) |  |

Definition at line 31 of file ptid.c.

Referenced by agent_run_command(), attach_thread(), child_add_thread(), debug_event_ptid(), do_attach(), get_cores_used_by_process(), handle_extended_wait(), linux_attach(), linux_create_inferior(), linux_low_filter_event(), linux_proc_attach_tgid_threads(), linux_xfer_osdata_threads(), lynx_ptid_build(), nto_find_new_threads(), nto_request_interrupt(), nto_wait(), read_ptid(), spu_attach(), spu_create_inferior(), and spu_wait().

## ◆ ptid_equal()

int ptid_equal | ( | const ptid_t & | ptid1,
|  | const ptid_t & | ptid2
| ) |  |

Definition at line 71 of file ptid.c.

Referenced by agent_run_command(), complete_ongoing_step_over(), delete_single_step_breakpoints(), handle_btrace_conf_general_set(), handle_btrace_general_set(), handle_qxfer_btrace(), handle_qxfer_btrace_conf(), has_single_step_breakpoints(), linux_set_resume_request(), linux_wait(), linux_wait_1(), linux_wait_for_event_filtered(), lynx_resume(), lynx_wait_1(), myresume(), nto_set_thread(), prepare_resume_reply(), process_serial_event(), reinsert_single_step_breakpoints(), spu_resume(), spu_thread_alive(), target_pid_to_str(), uninsert_single_step_breakpoints(), visit_actioned_threads(), and win32_resume().

## ◆ ptid_get_lwp()

long ptid_get_lwp | ( | const ptid_t & | ptid | ) |

Definition at line 55 of file ptid.c.

References ptid_t::lwp().

Referenced by aarch64_linux_prepare_to_resume(), attach_proc_task_lwp_callback(), debug_reg_change_callback(), do_attach(), fetch_ppc_memory(), fetch_ppc_register(), find_one_thread(), handle_extended_wait(), kill_wait_lwp(), linux_attach_lwp(), linux_common_core_of_thread(), linux_proc_tid_get_name(), linux_ptrace_attach_fail_reason_string(), linux_set_resume_request(), lynx_ptid_get_tid(), mips_linux_prepare_to_resume(), nto_set_thread(), nto_thread_alive(), spu_proc_xfer_spu(), spu_resume(), store_ppc_memory(), target_pid_to_str(), visit_actioned_threads(), write_ptid(), x86_linux_dr_get(), and x86_linux_dr_set().

## ◆ ptid_get_pid()

int ptid_get_pid | ( | const ptid_t & | ptid | ) |

Definition at line 47 of file ptid.c.

References ptid_t::pid().

Referenced by aarch64_linux_prepare_to_resume(), aarch64_notify_debug_reg_change(), handle_detach(), handle_extended_wait(), handle_query(), handle_target_event(), kill_wait_lwp(), linux_common_core_of_thread(), linux_proc_tid_get_name(), linux_set_resume_request(), lynx_ptid_get_pid(), lynx_resume(), mips_linux_prepare_to_resume(), nto_set_thread(), nto_thread_alive(), nto_wait(), prepare_resume_reply(), run_inferior_command(), set_single_step_breakpoint(), spu_wait(), target_mourn_inferior(), target_pid_to_str(), visit_actioned_threads(), write_ptid(), x86_linux_dr_set_addr(), x86_linux_dr_set_control(), and x86_linux_update_debug_registers().

## ◆ ptid_get_tid()

long ptid_get_tid | ( | const ptid_t & | ptid | ) |

Definition at line 63 of file ptid.c.

References ptid_t::tid().

Referenced by target_pid_to_str().

## ◆ ptid_is_pid()

int ptid_is_pid | ( | const ptid_t & | ptid | ) |

Definition at line 79 of file ptid.c.

References ptid_t::is_pid().

Referenced by linux_set_resume_request(), and linux_wait_for_event_filtered().

## ◆ ptid_lwp_p()

int ptid_lwp_p | ( | const ptid_t & | ptid | ) |

Definition at line 87 of file ptid.c.

References ptid_t::lwp_p().

Referenced by linux_proc_tid_get_name(), x86_linux_dr_get(), and x86_linux_dr_set().

## ◆ ptid_match()

int ptid_match | ( | const ptid_t & | ptid,
|  | const ptid_t & | filter
| ) |  |

Definition at line 103 of file ptid.c.

References ptid_t::matches().

Referenced by in_queued_stop_replies_ptid(), and remove_all_on_match_ptid().

## ◆ ptid_tid_p()

int ptid_tid_p | ( | const ptid_t & | ptid | ) |

Definition at line 95 of file ptid.c.

References ptid_t::tid_p().

## Variable Documentation

## ◆ minus_one_ptid

ptid_t minus_one_ptid

Definition at line 26 of file ptid.c.

Referenced by captured_main(), complete_ongoing_step_over(), do_initial_child_stuff(), handle_btrace_conf_general_set(), handle_btrace_general_set(), handle_detach(), handle_query(), handle_qxfer_btrace(), handle_qxfer_btrace_conf(), handle_target_event(), handle_v_cont(), linux_set_resume_request(), linux_stabilize_threads(), linux_wait_1(), linux_wait_for_event_filtered(), lynx_resume(), lynx_wait_1(), myresume(), nto_set_thread(), process_serial_event(), resume(), spu_resume(), startup_inferior(), switch_to_thread(), target_pid_to_str(), visit_actioned_threads(), wait_for_sigstop(), win32_detach(), and win32_resume().

## ◆ null_ptid

ptid_t null_ptid

Definition at line 25 of file ptid.c.

Referenced by agent_run_command(), captured_main(), complete_ongoing_step_over(), finish_step_over(), handle_btrace_conf_general_set(), handle_btrace_general_set(), handle_query(), handle_qxfer_btrace(), handle_qxfer_btrace_conf(), handle_target_event(), handle_v_cont(), ignore_event(), linux_wait(), linux_wait_1(), linux_wait_for_event_filtered(), lynx_add_process(), lynx_ptrace_fun(), myresume(), nto_set_thread(), prefork_hook(), process_serial_event(), target_pid_to_str(), and wait_for_sigstop().