GDB (API)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/gnu-nat.h File Reference
#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 procinf_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_opsgnu_target (void)

Variables

struct inf * gnu_current_inf
int gnu_debug_flag

Define Documentation

#define debug (   msg,
  args... 
)
Value:
do { if (gnu_debug_flag) \
        fprintf_unfiltered (gdb_stdlog, "%s:%d: " msg "\r\n", \
                            __FILE__ , __LINE__ , ##args); } while (0)

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

#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 at line 88 of file gnu-nat.h.

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

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

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

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

#define PROC_TID_TASK   (-1)

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


Function Documentation

int __proc_pid ( struct proc proc)

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

struct target_ops* gnu_target ( void  ) [read]

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

struct proc* inf_tid_to_thread ( struct inf *  inf,
int  tid 
) [read]

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

int inf_update_procs ( struct inf *  inf)

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

thread_state_t proc_get_state ( struct proc proc,
int  will_modify 
)

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

char* proc_string ( struct proc proc)

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


Variable Documentation

struct inf* gnu_current_inf

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

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines