GDBserver
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 (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::make_null ()
 
ptid_t minus_one_ptid = ptid_t::make_minus_one ()
 

Function Documentation

◆ pid_to_ptid()

ptid_t pid_to_ptid ( int  pid)

◆ ptid_build()

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

◆ ptid_equal()

int ptid_equal ( const ptid_t ptid1,
const ptid_t ptid2 
)

◆ ptid_get_lwp()

long ptid_get_lwp ( const ptid_t ptid)

◆ ptid_get_pid()

int ptid_get_pid ( const ptid_t ptid)

◆ 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 = ptid_t::make_minus_one ()

◆ null_ptid

ptid_t null_ptid = ptid_t::make_null ()