GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
gnu-nat.h File Reference
#include "defs.h"
#include <mach.h>
#include <unistd.h>
#include "inf-child.h"

Go to the source code of this file.

Classes

struct  proc
 
struct  gnu_nat_target
 

Macros

#define thread_info   mach_thread_info
 
#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

 __typeof__ (mach_thread_info) mach_thread_info asm("thread_info")
 
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)
 
char * proc_string (struct proc *proc)
 

Variables

struct infgnu_current_inf
 
bool gnu_debug_flag
 
gnu_nat_targetgnu_target
 

Macro Definition Documentation

◆ debug

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

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

◆ proc_debug

#define proc_debug ( _proc,
msg,
args... )

◆ 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)

◆ PROC_TID_TASK

#define PROC_TID_TASK   (-1)

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

Referenced by gnu_nat_target::inf_set_pid().

◆ thread_info

#define thread_info   mach_thread_info

Typedef Documentation

◆ inf_threads_ftype

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

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

Function Documentation

◆ __proc_pid()

int __proc_pid ( struct proc * proc)
extern

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

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

◆ __typeof__()

__typeof__ ( mach_thread_info )
extern

◆ inf_threads()

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

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

References f(), 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_string()

char * proc_string ( struct proc * proc)
extern

Variable Documentation

◆ gnu_current_inf

struct inf* gnu_current_inf
extern

◆ gnu_debug_flag

bool gnu_debug_flag
extern

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

Referenced by _initialize_gnu_nat().

◆ gnu_target

gnu_nat_target* gnu_target
extern