GDB (xrefs)
|
#include <unistd.h>
#include <mach.h>
Go to the source code of this file.
Classes | |
struct | proc |
Defines | |
#define | PROC_TID_TASK (-1) |
#define | proc_is_task(proc) ((proc)->tid == PROC_TID_TASK) |
#define | proc_is_thread(proc) ((proc)->tid != PROC_TID_TASK) |
#define | proc_debug(_proc, msg, args...) |
#define | debug(msg, args...) |
Functions | |
struct proc * | inf_tid_to_thread (struct inf *inf, int tid) |
int | inf_update_procs (struct inf *inf) |
int | __proc_pid (struct proc *proc) |
thread_state_t | proc_get_state (struct proc *proc, int will_modify) |
char * | proc_string (struct proc *proc) |
struct target_ops * | gnu_target (void) |
Variables | |
struct inf * | gnu_current_inf |
int | gnu_debug_flag |
#define debug | ( | msg, | |
args... | |||
) |
do { if (gnu_debug_flag) \ fprintf_unfiltered (gdb_stdlog, "%s:%d: " msg "\r\n", \ __FILE__ , __LINE__ , ##args); } while (0)
#define proc_debug | ( | _proc, | |
msg, | |||
args... | |||
) |
do { struct proc *__proc = (_proc); \ debug ("{proc %d/%d %s}: " msg, \ __proc_pid (__proc), __proc->tid, \ host_address_to_string (__proc) , ##args); } while (0)
Definition at line 88 of file gnu-nat.h.
Referenced by _proc_free(), do_mach_notify_dead_name(), gnu_fetch_registers(), gnu_kill_inferior(), gnu_store_registers(), inf_validate_procs(), make_proc(), proc_abort(), proc_get_state(), proc_restore_exc_port(), proc_set_exception_port(), proc_steal_exc_port(), proc_trace(), and proc_update_sc().
#define proc_is_task | ( | proc | ) | ((proc)->tid == PROC_TID_TASK) |
Definition at line 74 of file gnu-nat.h.
Referenced by make_proc(), proc_get_exception_port(), proc_set_exception_port(), proc_string(), and proc_update_sc().
#define proc_is_thread | ( | proc | ) | ((proc)->tid != PROC_TID_TASK) |
Definition at line 75 of file gnu-nat.h.
Referenced by inf_set_step_thread(), proc_abort(), and proc_update_sc().
#define PROC_TID_TASK (-1) |
Definition at line 72 of file gnu-nat.h.
Referenced by inf_set_pid().
int __proc_pid | ( | struct proc * | proc | ) |
struct target_ops* gnu_target | ( | void | ) | [read] |
Definition at line 2645 of file gnu-nat.c.
References gnu_attach(), gnu_create_inferior(), gnu_detach(), gnu_find_memory_regions(), gnu_kill_inferior(), gnu_mourn_inferior(), gnu_pid_to_str(), gnu_resume(), gnu_stop(), gnu_terminal_init_inferior(), gnu_thread_alive(), gnu_wait(), gnu_xfer_partial(), inf_child_target(), target_ops::to_attach, target_ops::to_attach_no_wait, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_doc, target_ops::to_find_memory_regions, target_ops::to_kill, target_ops::to_longname, target_ops::to_mourn_inferior, target_ops::to_pid_to_str, target_ops::to_resume, target_ops::to_shortname, target_ops::to_stop, target_ops::to_terminal_init, target_ops::to_thread_alive, target_ops::to_wait, and target_ops::to_xfer_partial.
Referenced by _initialize_i386gnu_nat().
struct proc* inf_tid_to_thread | ( | struct inf * | inf, |
int | tid | ||
) | [read] |
Definition at line 965 of file gnu-nat.c.
References proc::next, inf::threads, and proc::tid.
Referenced by cur_thread(), gnu_fetch_registers(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), gnu_thread_alive(), gnu_wait(), and set_sig_thread_cmd().
int inf_update_procs | ( | struct inf * | inf | ) |
Definition at line 1110 of file gnu-nat.c.
References inf_validate_procs(), inf::task, and inf::threads_up_to_date.
Referenced by gnu_attach(), gnu_fetch_registers(), gnu_resume(), gnu_store_registers(), gnu_thread_alive(), gnu_wait(), inf_resume(), inf_set_threads_resume_sc(), inf_suspend(), and S_exception_raise_request().
thread_state_t proc_get_state | ( | struct proc * | proc, |
int | will_modify | ||
) |
Definition at line 359 of file gnu-nat.c.
References proc::aborted, proc::port, proc_abort(), proc_debug, proc::state, proc::state_changed, proc::state_valid, THREAD_STATE_FLAVOR, and THREAD_STATE_SIZE.
Referenced by gnu_fetch_registers(), gnu_store_registers(), and proc_trace().
char* proc_string | ( | struct proc * | proc | ) |
Definition at line 2610 of file gnu-nat.c.
References proc::inf, inf::pid, proc_is_task, proc::tid, and xsnprintf().
Referenced by fetch_fpregs(), gnu_fetch_registers(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), proc_abort(), proc_restore_exc_port(), proc_steal_exc_port(), show_sig_thread_cmd(), show_thread_detach_sc_cmd(), show_thread_pause_cmd(), show_thread_run_cmd(), steal_exc_port(), and store_fpregs().
struct inf* gnu_current_inf |
Definition at line 1438 of file gnu-nat.c.
Referenced by cur_inf(), gnu_fetch_registers(), gnu_pid_to_str(), gnu_resume(), gnu_store_registers(), and gnu_wait().
Definition at line 86 of file gnu-nat.c.
Referenced by _initialize_gnu_nat().