GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/gnu-nat.c File Reference
#include "defs.h"
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include "gdb_string.h"
#include <sys/ptrace.h>
#include <mach.h>
#include <mach_error.h>
#include <mach/exception.h>
#include <mach/message.h>
#include <mach/notify.h>
#include <mach/vm_attributes.h>
#include <hurd.h>
#include <hurd/interrupt.h>
#include <hurd/msg.h>
#include <hurd/msg_request.h>
#include <hurd/process.h>
#include <hurd/process_request.h>
#include <hurd/signal.h>
#include <hurd/sigpreempt.h>
#include <portinfo.h>
#include "inferior.h"
#include "symtab.h"
#include "value.h"
#include "language.h"
#include "target.h"
#include "gdb_wait.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "gdb_assert.h"
#include "gdb_obstack.h"
#include "gnu-nat.h"
#include "inf-child.h"
#include "exc_request_S.h"
#include "notify_S.h"
#include "process_reply_S.h"
#include "msg_reply_S.h"
#include "exc_request_U.h"
#include "msg_U.h"

Go to the source code of this file.

Classes

struct  exc_state
struct  inf_wait
struct  inf
struct  vm_region_list

Defines

#define inf_debug(_inf, msg, args...)
#define INF_MSGPORT_RPC(inf, rpc_expr)
#define INF_RESUME_MSGPORT_RPC(inf, rpc_expr)
#define NAME   gdb_signal_to_name (sig)
#define CHK_GOTO_OUT(str, ret)   do if (ret != KERN_SUCCESS) { errstr = #str; goto out; } while(0)
#define parse_bool_arg(args, cmd_prefix)   _parse_bool_arg (args, "on", "off", cmd_prefix)

Functions

struct infmake_inf ()
void inf_clear_wait (struct inf *inf)
void inf_cleanup (struct inf *inf)
void inf_startup (struct inf *inf, int pid)
int inf_update_suspends (struct inf *inf)
void inf_set_pid (struct inf *inf, pid_t pid)
void inf_validate_procs (struct inf *inf)
void inf_steal_exc_ports (struct inf *inf)
void inf_restore_exc_ports (struct inf *inf)
struct procinf_tid_to_proc (struct inf *inf, int tid)
void inf_set_threads_resume_sc (struct inf *inf, struct proc *run_thread, int run_others)
int inf_set_threads_resume_sc_for_signal_thread (struct inf *inf)
void inf_suspend (struct inf *inf)
void inf_resume (struct inf *inf)
void inf_set_step_thread (struct inf *inf, struct proc *proc)
void inf_detach (struct inf *inf)
void inf_attach (struct inf *inf, int pid)
void inf_signal (struct inf *inf, enum gdb_signal sig)
void inf_continue (struct inf *inf)
void proc_abort (struct proc *proc, int force)
struct procmake_proc (struct inf *inf, mach_port_t port, int tid)
struct proc_proc_free (struct proc *proc)
int proc_update_sc (struct proc *proc)
error_t proc_get_exception_port (struct proc *proc, mach_port_t *port)
error_t proc_set_exception_port (struct proc *proc, mach_port_t port)
static mach_port_t _proc_get_exc_port (struct proc *proc)
void proc_steal_exc_port (struct proc *proc, mach_port_t exc_port)
void proc_restore_exc_port (struct proc *proc)
int proc_trace (struct proc *proc, int set)
int __proc_pid (struct proc *proc)
thread_state_t proc_get_state (struct proc *proc, int will_modify)
static void inf_validate_procinfo (struct inf *inf)
static void inf_validate_task_sc (struct inf *inf)
void inf_set_traced (struct inf *inf, int on)
struct procinf_tid_to_thread (struct inf *inf, int tid)
struct procinf_port_to_thread (struct inf *inf, mach_port_t port)
int inf_update_procs (struct inf *inf)
static void inf_update_signal_thread (struct inf *inf)
static ptid_t gnu_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, int options)
error_t S_exception_raise_request (mach_port_t port, mach_port_t reply_port, thread_t thread_port, task_t task_port, int exception, int code, int subcode)
void inf_task_died_status (struct inf *inf)
error_t do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_port)
static error_t ill_rpc (char *fun)
error_t do_mach_notify_no_senders (mach_port_t notify, mach_port_mscount_t count)
error_t do_mach_notify_port_deleted (mach_port_t notify, mach_port_t name)
error_t do_mach_notify_msg_accepted (mach_port_t notify, mach_port_t name)
error_t do_mach_notify_port_destroyed (mach_port_t notify, mach_port_t name)
error_t do_mach_notify_send_once (mach_port_t notify)
error_t S_proc_wait_reply (mach_port_t reply, error_t err, int status, int sigcode, rusage_t rusage, pid_t pid)
error_t S_proc_setmsgport_reply (mach_port_t reply, error_t err, mach_port_t old_msg_port)
error_t S_proc_getmsgport_reply (mach_port_t reply, error_t err, mach_port_t msg_port)
error_t S_msg_sig_post_untraced_reply (mach_port_t reply, error_t err)
error_t S_msg_sig_post_reply (mach_port_t reply, error_t err)
static mach_port_msgcount_t port_msgs_queued (mach_port_t port)
static void gnu_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal sig)
static void gnu_kill_inferior (struct target_ops *ops)
static void gnu_mourn_inferior (struct target_ops *ops)
static int inf_pick_first_thread (void)
static struct infcur_inf (void)
static void gnu_create_inferior (struct target_ops *ops, char *exec_file, char *allargs, char **env, int from_tty)
static void gnu_attach (struct target_ops *ops, char *args, int from_tty)
static void gnu_detach (struct target_ops *ops, char *args, int from_tty)
static void gnu_terminal_init_inferior (void)
static void gnu_stop (ptid_t ptid)
static int gnu_thread_alive (struct target_ops *ops, ptid_t ptid)
static int gnu_read_inferior (task_t task, CORE_ADDR addr, gdb_byte *myaddr, int length)
static int gnu_write_inferior (task_t task, CORE_ADDR addr, const gdb_byte *myaddr, int length)
static LONGEST gnu_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf, CORE_ADDR memaddr, LONGEST len)
static LONGEST gnu_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
static int gnu_find_memory_regions (find_memory_region_ftype func, void *data)
char * proc_string (struct proc *proc)
static char * gnu_pid_to_str (struct target_ops *ops, ptid_t ptid)
struct target_opsgnu_target (void)
static void set_thread_cmd (char *args, int from_tty)
static void show_thread_cmd (char *args, int from_tty)
static void set_thread_default_cmd (char *args, int from_tty)
static void show_thread_default_cmd (char *args, int from_tty)
static int parse_int_arg (char *args, char *cmd_prefix)
static int _parse_bool_arg (char *args, char *t_val, char *f_val, char *cmd_prefix)
static void check_empty (char *args, char *cmd_prefix)
static struct proccur_thread (void)
static struct infactive_inf (void)
static void set_task_pause_cmd (char *args, int from_tty)
static void show_task_pause_cmd (char *args, int from_tty)
static void set_task_detach_sc_cmd (char *args, int from_tty)
static void show_task_detach_sc_cmd (char *args, int from_tty)
static void set_thread_default_pause_cmd (char *args, int from_tty)
static void show_thread_default_pause_cmd (char *args, int from_tty)
static void set_thread_default_run_cmd (char *args, int from_tty)
static void show_thread_default_run_cmd (char *args, int from_tty)
static void set_thread_default_detach_sc_cmd (char *args, int from_tty)
static void show_thread_default_detach_sc_cmd (char *args, int from_tty)
static void steal_exc_port (struct proc *proc, mach_port_t name)
static void set_task_exc_port_cmd (char *args, int from_tty)
static void set_stopped_cmd (char *args, int from_tty)
static void show_stopped_cmd (char *args, int from_tty)
static void set_sig_thread_cmd (char *args, int from_tty)
static void show_sig_thread_cmd (char *args, int from_tty)
static void set_signals_cmd (char *args, int from_tty)
static void show_signals_cmd (char *args, int from_tty)
static void set_exceptions_cmd (char *args, int from_tty)
static void show_exceptions_cmd (char *args, int from_tty)
static void set_task_cmd (char *args, int from_tty)
static void show_task_cmd (char *args, int from_tty)
static void set_noninvasive_cmd (char *args, int from_tty)
static void info_port_rights (char *args, mach_port_type_t only)
static void info_send_rights_cmd (char *args, int from_tty)
static void info_recv_rights_cmd (char *args, int from_tty)
static void info_port_sets_cmd (char *args, int from_tty)
static void info_dead_names_cmd (char *args, int from_tty)
static void info_port_rights_cmd (char *args, int from_tty)
static void add_task_commands (void)
static void set_thread_pause_cmd (char *args, int from_tty)
static void show_thread_pause_cmd (char *args, int from_tty)
static void set_thread_run_cmd (char *args, int from_tty)
static void show_thread_run_cmd (char *args, int from_tty)
static void set_thread_detach_sc_cmd (char *args, int from_tty)
static void show_thread_detach_sc_cmd (char *args, int from_tty)
static void set_thread_exc_port_cmd (char *args, int from_tty)
static void thread_takeover_sc_cmd (char *args, int from_tty)
static void add_thread_commands (void)
void _initialize_gnu_nat (void)

Variables

static process_t proc_server = MACH_PORT_NULL
int proc_wait_pid = 0
int proc_waits_pending = 0
int gnu_debug_flag = 0
static int next_thread_id = 1
struct infgnu_current_inf = 0
struct infwaiting_inf
struct obstack region_obstack
static struct cmd_list_elementset_task_cmd_list = 0
static struct cmd_list_elementshow_task_cmd_list = 0
struct cmd_list_elementthread_cmd_list
struct cmd_list_elementset_thread_cmd_list = NULL
struct cmd_list_elementshow_thread_cmd_list = NULL
struct cmd_list_elementset_thread_default_cmd_list = NULL
struct cmd_list_elementshow_thread_default_cmd_list = NULL

Define Documentation

#define CHK_GOTO_OUT (   str,
  ret 
)    do if (ret != KERN_SUCCESS) { errstr = #str; goto out; } while(0)

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

Referenced by gnu_write_inferior().

#define inf_debug (   _inf,
  msg,
  args... 
)
#define INF_MSGPORT_RPC (   inf,
  rpc_expr 
)
Value:
HURD_MSGPORT_RPC (proc_getmsgport (proc_server, inf->pid, &msgport), \
                    (refport = inf->task->port, 0), 0, \
                    msgport ? (rpc_expr) : EIEIO)

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

Referenced by inf_signal().

#define INF_RESUME_MSGPORT_RPC (   inf,
  rpc_expr 
)
Value:
(inf_set_threads_resume_sc_for_signal_thread (inf) \
   ? ({ error_t __e; \
        inf_resume (inf); \
        __e = INF_MSGPORT_RPC (inf, rpc_expr); \
        inf_suspend (inf); \
        __e; }) \
   : EIEIO)

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

Referenced by inf_set_traced(), and inf_signal().

#define NAME   gdb_signal_to_name (sig)
#define parse_bool_arg (   args,
  cmd_prefix 
)    _parse_bool_arg (args, "on", "off", cmd_prefix)

Function Documentation

int __proc_pid ( struct proc proc)

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

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

void _initialize_gnu_nat ( void  )
static int _parse_bool_arg ( char *  args,
char *  t_val,
char *  f_val,
char *  cmd_prefix 
) [static]

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

References _, and error().

Referenced by set_stopped_cmd().

struct proc * _proc_free ( struct proc proc) [read]
static mach_port_t _proc_get_exc_port ( struct proc proc) [static]
static struct inf* active_inf ( void  ) [static, read]

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

References _, cur_inf(), error(), arm-linux::inf, and inf::task.

Referenced by info_port_rights(), show_sig_thread_cmd(), and show_stopped_cmd().

static void add_task_commands ( void  ) [static]
static void add_thread_commands ( void  ) [static]
static void check_empty ( char *  args,
char *  cmd_prefix 
) [static]
static struct inf* cur_inf ( void  ) [static, read]
static struct proc* cur_thread ( void  ) [static, read]
error_t do_mach_notify_dead_name ( mach_port_t  notify,
mach_port_t  dead_port 
)
error_t do_mach_notify_msg_accepted ( mach_port_t  notify,
mach_port_t  name 
)

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

References ill_rpc().

error_t do_mach_notify_no_senders ( mach_port_t  notify,
mach_port_mscount_t  count 
)

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

References ill_rpc().

error_t do_mach_notify_port_deleted ( mach_port_t  notify,
mach_port_t  name 
)

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

References ill_rpc().

error_t do_mach_notify_port_destroyed ( mach_port_t  notify,
mach_port_t  name 
)

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

References ill_rpc().

error_t do_mach_notify_send_once ( mach_port_t  notify)

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

References ill_rpc().

static void gnu_attach ( struct target_ops ops,
char *  args,
int  from_tty 
) [static]
static void gnu_create_inferior ( struct target_ops ops,
char *  exec_file,
char *  allargs,
char **  env,
int  from_tty 
) [static]
static void gnu_detach ( struct target_ops ops,
char *  args,
int  from_tty 
) [static]
static int gnu_find_memory_regions ( find_memory_region_ftype  func,
void *  data 
) [static]

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

References _, offset, proc::port, vm_region_list::protection, inf::task, VM_MIN_ADDRESS, and warning().

Referenced by gnu_target().

static void gnu_kill_inferior ( struct target_ops ops) [static]

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

References inf_set_pid(), proc::port, proc_debug, target_mourn_inferior(), and inf::task.

Referenced by gnu_target().

static void gnu_mourn_inferior ( struct target_ops ops) [static]

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

References generic_mourn_inferior(), inf_debug, inf_detach(), and unpush_target().

Referenced by gnu_target().

static char* gnu_pid_to_str ( struct target_ops ops,
ptid_t  ptid 
) [static]

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

References gnu_current_inf, inf_tid_to_thread(), proc_string(), ptid_get_lwp(), and xsnprintf().

Referenced by gnu_target().

static int gnu_read_inferior ( task_t  task,
CORE_ADDR  addr,
gdb_byte myaddr,
int  length 
) [static]

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

References _, safe_strerror(), and warning().

Referenced by gnu_xfer_memory().

static void gnu_resume ( struct target_ops ops,
ptid_t  ptid,
int  step,
enum gdb_signal  sig 
) [static]
static void gnu_stop ( ptid_t  ptid) [static]

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

References _, and error().

Referenced by gnu_target().

struct target_ops* gnu_target ( void  ) [read]
static void gnu_terminal_init_inferior ( void  ) [static]

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

References gdb_assert, inf::pid, and terminal_init_inferior_with_pgrp().

Referenced by gnu_target().

static int gnu_thread_alive ( struct target_ops ops,
ptid_t  ptid 
) [static]

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

References inf_tid_to_thread(), inf_update_procs(), and ptid_get_lwp().

Referenced by gnu_target().

static ptid_t gnu_wait ( struct target_ops ops,
ptid_t  ptid,
struct target_waitstatus status,
int  options 
) [static]
static int gnu_write_inferior ( task_t  task,
CORE_ADDR  addr,
const gdb_byte myaddr,
int  length 
) [static]
static LONGEST gnu_xfer_memory ( gdb_byte readbuf,
const gdb_byte writebuf,
CORE_ADDR  memaddr,
LONGEST  len 
) [static]
static LONGEST gnu_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
LONGEST  len 
) [static]

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

References gnu_xfer_memory(), and TARGET_OBJECT_MEMORY.

Referenced by gnu_target().

static error_t ill_rpc ( char *  fun) [static]
void inf_attach ( struct inf inf,
int  pid 
)

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

References inf_debug, inf_detach(), inf_startup(), and inf::pid.

Referenced by gnu_attach(), and gnu_create_inferior().

void inf_cleanup ( struct inf inf)
void inf_clear_wait ( struct inf inf)
void inf_continue ( struct inf inf)
void inf_detach ( struct inf inf)
static int inf_pick_first_thread ( void  ) [static]

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

References next_thread_id, inf::task, inf::threads, and proc::tid.

Referenced by gnu_attach(), and gnu_create_inferior().

struct proc* inf_port_to_thread ( struct inf inf,
mach_port_t  port 
) [read]

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

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

Referenced by do_mach_notify_dead_name(), and S_exception_raise_request().

void inf_restore_exc_ports ( struct inf inf)
void inf_resume ( struct inf inf)
void inf_set_pid ( struct inf inf,
pid_t  pid 
)
void inf_set_step_thread ( struct inf inf,
struct proc proc 
)
void inf_set_threads_resume_sc ( struct inf inf,
struct proc run_thread,
int  run_others 
)

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

References inf_set_threads_resume_sc(), and inf::signal_thread.

void inf_set_traced ( struct inf inf,
int  on 
)
void inf_signal ( struct inf inf,
enum gdb_signal  sig 
)
void inf_startup ( struct inf inf,
int  pid 
)

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

References _, error(), inf::event_port, inf_cleanup(), inf_debug, inf_set_pid(), and safe_strerror().

Referenced by inf_attach().

void inf_steal_exc_ports ( struct inf inf)
void inf_suspend ( struct inf inf)
void inf_task_died_status ( struct inf inf)
struct proc* inf_tid_to_proc ( struct inf inf,
int  tid 
) [read]
struct proc* inf_tid_to_thread ( struct inf inf,
int  tid 
) [read]
int inf_update_procs ( struct inf inf)
static void inf_update_signal_thread ( struct inf inf) [static]

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

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

Referenced by gnu_attach(), and gnu_create_inferior().

int inf_update_suspends ( struct inf inf)
static void inf_validate_procinfo ( struct inf inf) [static]

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

References inf::nomsg, inf::pid, proc_server, inf::stopped, and inf::traced.

Referenced by gnu_attach(), gnu_create_inferior(), gnu_resume(), and inf_detach().

void inf_validate_procs ( struct inf inf)
static void inf_validate_task_sc ( struct inf inf) [static]
static void info_dead_names_cmd ( char *  args,
int  from_tty 
) [static]

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

References info_port_rights().

Referenced by add_task_commands().

static void info_port_rights ( char *  args,
mach_port_type_t  only 
) [static]
static void info_port_rights_cmd ( char *  args,
int  from_tty 
) [static]

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

References info_port_rights().

Referenced by add_task_commands().

static void info_port_sets_cmd ( char *  args,
int  from_tty 
) [static]

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

References info_port_rights().

Referenced by add_task_commands().

static void info_recv_rights_cmd ( char *  args,
int  from_tty 
) [static]

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

References info_port_rights().

Referenced by add_task_commands().

static void info_send_rights_cmd ( char *  args,
int  from_tty 
) [static]

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

References info_port_rights().

Referenced by add_task_commands().

struct inf * make_inf ( void  ) [read]
struct proc * make_proc ( struct inf inf,
mach_port_t  port,
int  tid 
) [read]
static int parse_int_arg ( char *  args,
char *  cmd_prefix 
) [static]

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

References _, and error().

Referenced by set_task_detach_sc_cmd(), set_thread_default_detach_sc_cmd(), and set_thread_detach_sc_cmd().

static mach_port_msgcount_t port_msgs_queued ( mach_port_t  port) [static]

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

Referenced by gnu_resume().

void proc_abort ( struct proc proc,
int  force 
)
error_t proc_get_exception_port ( struct proc proc,
mach_port_t *  port 
)

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

References proc::port, and proc_is_task.

Referenced by _proc_get_exc_port().

thread_state_t proc_get_state ( struct proc proc,
int  will_modify 
)
void proc_restore_exc_port ( struct proc proc)
error_t proc_set_exception_port ( struct proc proc,
mach_port_t  port 
)

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

References proc::port, proc_debug, and proc_is_task.

Referenced by proc_restore_exc_port(), proc_steal_exc_port(), and steal_exc_port().

void proc_steal_exc_port ( struct proc proc,
mach_port_t  exc_port 
)
char* proc_string ( struct proc proc)
int proc_trace ( struct proc proc,
int  set 
)
int proc_update_sc ( struct proc proc)
error_t S_exception_raise_request ( mach_port_t  port,
mach_port_t  reply_port,
thread_t  thread_port,
task_t  task_port,
int  exception,
int  code,
int  subcode 
)
error_t S_msg_sig_post_reply ( mach_port_t  reply,
error_t  err 
)

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

References ill_rpc().

error_t S_msg_sig_post_untraced_reply ( mach_port_t  reply,
error_t  err 
)
error_t S_proc_getmsgport_reply ( mach_port_t  reply,
error_t  err,
mach_port_t  msg_port 
)

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

References ill_rpc().

error_t S_proc_setmsgport_reply ( mach_port_t  reply,
error_t  err,
mach_port_t  old_msg_port 
)

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

References ill_rpc().

error_t S_proc_wait_reply ( mach_port_t  reply,
error_t  err,
int  status,
int  sigcode,
rusage_t  rusage,
pid_t  pid 
)
static void set_exceptions_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_inf(), parse_bool_arg, inf::task, and inf::want_exceptions.

Referenced by add_task_commands(), and set_noninvasive_cmd().

static void set_noninvasive_cmd ( char *  args,
int  from_tty 
) [static]

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

References parse_bool_arg, set_exceptions_cmd(), set_signals_cmd(), and set_task_pause_cmd().

Referenced by add_task_commands().

static void set_sig_thread_cmd ( char *  args,
int  from_tty 
) [static]
static void set_signals_cmd ( char *  args,
int  from_tty 
) [static]
static void set_stopped_cmd ( char *  args,
int  from_tty 
) [static]

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

References _parse_bool_arg(), cur_inf(), and inf::stopped.

Referenced by add_task_commands().

static void set_task_cmd ( char *  args,
int  from_tty 
) [static]

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

References printf_unfiltered().

Referenced by add_task_commands().

static void set_task_detach_sc_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_inf(), inf::detach_sc, and parse_int_arg().

Referenced by add_task_commands().

static void set_task_exc_port_cmd ( char *  args,
int  from_tty 
) [static]

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

References _, cur_inf(), error(), parse_and_eval_address(), steal_exc_port(), and inf::task.

Referenced by add_task_commands().

static void set_task_pause_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_inf(), inf_suspend(), parse_bool_arg, and inf::pause_sc.

Referenced by add_task_commands(), and set_noninvasive_cmd().

static void set_thread_cmd ( char *  args,
int  from_tty 
) [static]

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

References printf_unfiltered().

Referenced by add_thread_commands().

static void set_thread_default_cmd ( char *  args,
int  from_tty 
) [static]

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

References printf_unfiltered().

Referenced by add_thread_commands().

static void set_thread_default_detach_sc_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_inf(), inf::default_thread_detach_sc, and parse_int_arg().

Referenced by add_task_commands().

static void set_thread_default_pause_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_inf(), inf::default_thread_pause_sc, and parse_bool_arg.

Referenced by add_task_commands().

static void set_thread_default_run_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_inf(), inf::default_thread_run_sc, and parse_bool_arg.

Referenced by add_task_commands().

static void set_thread_detach_sc_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_thread(), proc::detach_sc, and parse_int_arg().

Referenced by add_thread_commands().

static void set_thread_exc_port_cmd ( char *  args,
int  from_tty 
) [static]

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

References _, cur_thread(), error(), parse_and_eval_address(), and steal_exc_port().

Referenced by add_thread_commands().

static void set_thread_pause_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_thread(), proc::inf, inf_suspend(), parse_bool_arg, proc::pause_sc, and inf::pause_sc.

Referenced by add_thread_commands().

static void set_thread_run_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_thread(), parse_bool_arg, and proc::run_sc.

Referenced by add_thread_commands().

static void show_exceptions_cmd ( char *  args,
int  from_tty 
) [static]

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

References check_empty(), cur_inf(), printf_unfiltered(), inf::task, and inf::want_exceptions.

Referenced by add_task_commands(), and show_task_cmd().

static void show_sig_thread_cmd ( char *  args,
int  from_tty 
) [static]
static void show_signals_cmd ( char *  args,
int  from_tty 
) [static]
static void show_stopped_cmd ( char *  args,
int  from_tty 
) [static]

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

References active_inf(), check_empty(), printf_unfiltered(), and inf::stopped.

Referenced by add_task_commands(), and show_task_cmd().

static void show_task_cmd ( char *  args,
int  from_tty 
) [static]
static void show_task_detach_sc_cmd ( char *  args,
int  from_tty 
) [static]

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

References check_empty(), cur_inf(), inf::detach_sc, and printf_unfiltered().

Referenced by add_task_commands(), and show_task_cmd().

static void show_task_pause_cmd ( char *  args,
int  from_tty 
) [static]

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

References check_empty(), cur_inf(), inf::pause_sc, printf_unfiltered(), and inf::task.

Referenced by add_task_commands(), and show_task_cmd().

static void show_thread_cmd ( char *  args,
int  from_tty 
) [static]

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

References printf_unfiltered().

Referenced by add_thread_commands().

static void show_thread_default_cmd ( char *  args,
int  from_tty 
) [static]

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

References printf_unfiltered().

Referenced by add_thread_commands().

static void show_thread_default_detach_sc_cmd ( char *  args,
int  from_tty 
) [static]
static void show_thread_default_pause_cmd ( char *  args,
int  from_tty 
) [static]
static void show_thread_default_run_cmd ( char *  args,
int  from_tty 
) [static]

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

References check_empty(), cur_inf(), inf::default_thread_run_sc, and printf_unfiltered().

Referenced by add_task_commands(), and show_task_cmd().

static void show_thread_detach_sc_cmd ( char *  args,
int  from_tty 
) [static]

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

References check_empty(), cur_thread(), proc::detach_sc, printf_unfiltered(), and proc_string().

Referenced by add_thread_commands().

static void show_thread_pause_cmd ( char *  args,
int  from_tty 
) [static]
static void show_thread_run_cmd ( char *  args,
int  from_tty 
) [static]

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

References check_empty(), cur_thread(), printf_unfiltered(), proc_string(), and proc::run_sc.

Referenced by add_thread_commands().

static void steal_exc_port ( struct proc proc,
mach_port_t  name 
) [static]
static void thread_takeover_sc_cmd ( char *  args,
int  from_tty 
) [static]

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

References cur_thread(), error(), proc::port, printf_unfiltered(), safe_strerror(), and proc::sc.

Referenced by add_thread_commands().


Variable Documentation

struct inf* gnu_current_inf = 0

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

Referenced by _initialize_gnu_nat().

int next_thread_id = 1 [static]

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

Referenced by inf_pick_first_thread(), and inf_validate_procs().

process_t proc_server = MACH_PORT_NULL [static]

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

Referenced by do_mach_notify_dead_name(), gnu_wait(), and S_proc_wait_reply().

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

Referenced by gnu_wait(), and S_proc_wait_reply().

struct obstack region_obstack

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

Referenced by gnu_write_inferior().

struct cmd_list_element* set_task_cmd_list = 0 [static]

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

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

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

struct cmd_list_element* show_task_cmd_list = 0 [static]

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

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

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

Definition at line 1510 of file thread.c.

struct inf* waiting_inf
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines