GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/darwin-nat.c File Reference
#include "defs.h"
#include "top.h"
#include "inferior.h"
#include "target.h"
#include "symfile.h"
#include "symtab.h"
#include "objfiles.h"
#include "gdb.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "regcache.h"
#include "event-top.h"
#include "inf-loop.h"
#include "gdb_stat.h"
#include "exceptions.h"
#include "inf-child.h"
#include "value.h"
#include "arch-utils.h"
#include "bfd.h"
#include "bfd/mach-o.h"
#include <sys/ptrace.h>
#include <sys/signal.h>
#include <machine/setjmp.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <ctype.h>
#include <sys/sysctl.h>
#include <sys/proc.h>
#include <libproc.h>
#include <sys/syscall.h>
#include <spawn.h>
#include <mach/mach_error.h>
#include <mach/mach_vm.h>
#include <mach/mach_init.h>
#include <mach/vm_map.h>
#include <mach/task.h>
#include <mach/mach_port.h>
#include <mach/thread_act.h>
#include <mach/port.h>
#include "darwin-nat.h"
#include "common/filestuff.h"

Go to the source code of this file.

Defines

#define PTRACE(CMD, PID, ADDR, SIG)   darwin_ptrace(#CMD, CMD, (PID), (ADDR), (SIG))
#define PAGE_TRUNC(x)   ((x) & ~(mach_page_size - 1))
#define PAGE_ROUND(x)   PAGE_TRUNC((x) + mach_page_size - 1)
#define _POSIX_SPAWN_DISABLE_ASLR   0x0100

Functions

boolean_t exc_server (mach_msg_header_t *in, mach_msg_header_t *out)
void mach_check_error (kern_return_t ret, const char *file, unsigned int line, const char *func)
void _initialize_darwin_inferior (void)

Variables

mach_port_t darwin_host_self
mach_port_t darwin_ex_port
mach_port_t darwin_port_set
initialize_file_ftype _initialize_darwin_inferior

Define Documentation

#define _POSIX_SPAWN_DISABLE_ASLR   0x0100
#define PAGE_ROUND (   x)    PAGE_TRUNC((x) + mach_page_size - 1)

Definition at line 144 of file darwin-nat.c.

#define PAGE_TRUNC (   x)    ((x) & ~(mach_page_size - 1))

Definition at line 143 of file darwin-nat.c.

#define PTRACE (   CMD,
  PID,
  ADDR,
  SIG 
)    darwin_ptrace(#CMD, CMD, (PID), (ADDR), (SIG))

Definition at line 85 of file darwin-nat.c.


Function Documentation

void _initialize_darwin_inferior ( void  )

Definition at line 2071 of file darwin-nat.c.

boolean_t exc_server ( mach_msg_header_t *  in,
mach_msg_header_t *  out 
)
void mach_check_error ( kern_return_t  ret,
const char *  file,
unsigned int  line,
const char *  func 
)

Definition at line 192 of file darwin-nat.c.


Variable Documentation

mach_port_t darwin_ex_port

Definition at line 128 of file darwin-nat.c.

mach_port_t darwin_host_self

Definition at line 125 of file darwin-nat.c.

mach_port_t darwin_port_set

Definition at line 131 of file darwin-nat.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines