GDB (xrefs)
Classes | Macros | Typedefs | Functions | Variables
/tmp/gdb-8.1/gdb/gnu-nat.h File Reference
#include <unistd.h>
#include <mach.h>

Go to the source code of this file.

Classes

struct  proc
 

Macros

#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...)
 

Typedefs

typedef void() inf_threads_ftype(struct proc *thread, void *arg)
 

Functions

struct procinf_tid_to_thread (struct inf *inf, int tid)
 
void inf_threads (struct inf *inf, inf_threads_ftype *f, void *arg)
 
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_opsgnu_target (void)
 

Variables

struct infgnu_current_inf
 
int gnu_debug_flag
 

Macro Definition Documentation

◆ debug

#define debug (   msg,
  args... 
)
Value:
do { if (gnu_debug_flag) \
fprintf_unfiltered (gdb_stdlog, "%s:%d: " msg "\r\n", \
__FILE__ , __LINE__ , ##args); } while (0)
int gnu_debug_flag
Definition: gnu-nat.c:93
#define gdb_stdlog
Definition: utils.h:349

Definition at line 101 of file gnu-nat.h.

◆ proc_debug

#define proc_debug (   _proc,
  msg,
  args... 
)
Value:
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: gnu-nat.h:42
int tid
Definition: gnu-nat.h:45
int __proc_pid(struct proc *proc)
Definition: gnu-nat.c:253

Definition at line 93 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().

◆ proc_is_task

#define proc_is_task (   proc)    ((proc)->tid == PROC_TID_TASK)

◆ proc_is_thread

#define proc_is_thread (   proc)    ((proc)->tid != PROC_TID_TASK)

Definition at line 80 of file gnu-nat.h.

Referenced by inf_set_step_thread(), proc_abort(), and proc_update_sc().

◆ PROC_TID_TASK

#define PROC_TID_TASK   (-1)

Definition at line 77 of file gnu-nat.h.

Referenced by inf_set_pid().

Typedef Documentation

◆ inf_threads_ftype

typedef void() inf_threads_ftype(struct proc *thread, void *arg)

Definition at line 32 of file gnu-nat.h.

Function Documentation

◆ __proc_pid()

int __proc_pid ( struct proc proc)

Definition at line 253 of file gnu-nat.c.

References proc::inf, and inf::pid.

◆ gnu_target()

struct target_ops* gnu_target ( void  )

◆ inf_threads()

void inf_threads ( struct inf inf,
inf_threads_ftype f,
void *  arg 
)

Definition at line 996 of file gnu-nat.c.

References proc::next, and inf::threads.

◆ inf_tid_to_thread()

struct proc* inf_tid_to_thread ( struct inf inf,
int  tid 
)

◆ inf_update_procs()

int inf_update_procs ( struct inf inf)

◆ proc_get_state()

thread_state_t proc_get_state ( struct proc proc,
int  will_modify 
)

◆ proc_string()

char* proc_string ( struct proc proc)

Variable Documentation

◆ gnu_current_inf

struct inf* gnu_current_inf

◆ gnu_debug_flag

int gnu_debug_flag

Definition at line 93 of file gnu-nat.c.

Referenced by _initialize_gnu_nat().