GDB (xrefs)
Classes | Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/procfs.c File Reference
#include "defs.h"
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
#include "elf-bfd.h"
#include "gdbcmd.h"
#include "gdbthread.h"
#include "regcache.h"
#include "inf-child.h"
#include <sys/procfs.h>
#include <sys/errno.h>
#include "gdb_wait.h"
#include <signal.h>
#include <ctype.h>
#include "gdb_bfd.h"
#include "gdb_string.h"
#include "gdb_assert.h"
#include "inflow.h"
#include "auxv.h"
#include "procfs.h"
#include "observer.h"
#include <fcntl.h>
#include <unistd.h>
#include "gdb_stat.h"
#include "proc-utils.h"
#include "gregset.h"

Go to the source code of this file.

Classes

struct  procinfo

Defines

#define gdb_praddset(sp, flag)   ((void) praddset (sp, flag))
#define gdb_prdelset(sp, flag)   ((void) prdelset (sp, flag))
#define gdb_premptysysset   premptyset
#define gdb_praddsysset   gdb_praddset
#define gdb_prdelsysset   gdb_prdelset
#define gdb_pr_issyssetmember   prismember
#define MAIN_PROC_NAME_FMT   "/proc/%05d"
#define CTL_PROC_NAME_FMT   "/proc/%05d"
#define AS_PROC_NAME_FMT   "/proc/%05d"
#define MAP_PROC_NAME_FMT   "/proc/%05d"
#define STATUS_PROC_NAME_FMT   "/proc/%05d"
#define MAX_PROC_NAME_SIZE   sizeof("/proc/ttttppppp")

Typedefs

typedef sigset_t gdb_sigset_t
typedef struct sigaction gdb_sigaction_t
typedef siginfo_t gdb_siginfo_t
typedef prstatus_t gdb_prstatus_t
typedef prstatus_t gdb_lwpstatus_t
typedef struct procinfo procinfo

Enumerations

enum  { READ_WATCHFLAG = MA_READ, WRITE_WATCHFLAG = MA_WRITE, EXEC_WATCHFLAG = MA_EXEC, AFTER_WATCHFLAG = 0 }
enum  { FD_CTL, FD_STATUS, FD_AS }
enum  { NOKILL, KILL }
enum  { FLAG_RESET, FLAG_SET }

Functions

static void procfs_attach (struct target_ops *, char *, int)
static void procfs_detach (struct target_ops *, char *, int)
static void procfs_resume (struct target_ops *, ptid_t, int, enum gdb_signal)
static void procfs_stop (ptid_t)
static void procfs_files_info (struct target_ops *)
static void procfs_fetch_registers (struct target_ops *, struct regcache *, int)
static void procfs_store_registers (struct target_ops *, struct regcache *, int)
static void procfs_pass_signals (int, unsigned char *)
static void procfs_kill_inferior (struct target_ops *ops)
static void procfs_mourn_inferior (struct target_ops *ops)
static void procfs_create_inferior (struct target_ops *, char *, char *, char **, int)
static ptid_t procfs_wait (struct target_ops *, ptid_t, struct target_waitstatus *, int)
static int procfs_xfer_memory (CORE_ADDR, gdb_byte *, int, int, struct mem_attrib *attrib, struct target_ops *)
static LONGEST procfs_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 procfs_thread_alive (struct target_ops *ops, ptid_t)
static void procfs_find_new_threads (struct target_ops *ops)
static char * procfs_pid_to_str (struct target_ops *, ptid_t)
static int proc_find_memory_regions (find_memory_region_ftype, void *)
static char * procfs_make_note_section (bfd *, int *)
static int procfs_can_use_hw_breakpoint (int, int, int)
static void procfs_info_proc (struct target_ops *, char *, enum info_proc_what)
struct target_opsprocfs_target (void)
static procinfofind_procinfo_or_die (int pid, int tid)
static procinfofind_procinfo (int pid, int tid)
static procinfocreate_procinfo (int pid, int tid)
static void destroy_procinfo (procinfo *p)
static void do_destroy_procinfo_cleanup (void *)
static void dead_procinfo (procinfo *p, char *msg, int killp)
static int open_procinfo_files (procinfo *p, int which)
static void close_procinfo_files (procinfo *p)
static int sysset_t_size (procinfo *p)
static sysset_t * sysset_t_alloc (procinfo *pi)
static int iterate_over_mappings (procinfo *pi, find_memory_region_ftype child_func, void *data, int(*func)(struct prmap *map, find_memory_region_ftype child_func, void *data))
static int open_with_retry (const char *pathname, int flags)
static void destroy_one_procinfo (procinfo **list, procinfo *pi)
static long proc_flags (procinfo *pi)
static int proc_why (procinfo *pi)
static int proc_what (procinfo *pi)
static int proc_set_current_signal (procinfo *pi, int signo)
static int proc_get_current_thread (procinfo *pi)
static int proc_iterate_over_threads (procinfo *pi, int(*func)(procinfo *, procinfo *, void *), void *ptr)
static void proc_warn (procinfo *pi, char *func, int line)
static void proc_error (procinfo *pi, char *func, int line)
static int proc_get_status (procinfo *pi)
static int proc_watchpoint_address (procinfo *pi, CORE_ADDR *addr)
static int proc_nsysarg (procinfo *pi)
static long * proc_sysargs (procinfo *pi)
static int proc_modify_flag (procinfo *pi, long flag, long mode)
static int proc_set_run_on_last_close (procinfo *pi)
static int proc_unset_run_on_last_close (procinfo *pi)
static int proc_unset_inherit_on_fork (procinfo *pi)
static int proc_stop_process (procinfo *pi)
static int proc_wait_for_stop (procinfo *pi)
static int proc_run_process (procinfo *pi, int step, int signo)
static int proc_set_traced_signals (procinfo *pi, gdb_sigset_t *sigset)
static int proc_set_traced_faults (procinfo *pi, fltset_t *fltset)
static int proc_set_traced_sysentry (procinfo *pi, sysset_t *sysset)
static int proc_set_traced_sysexit (procinfo *pi, sysset_t *sysset)
static int proc_set_held_signals (procinfo *pi, gdb_sigset_t *sighold)
static gdb_sigset_tproc_get_held_signals (procinfo *pi, gdb_sigset_t *save)
static gdb_sigset_tproc_get_traced_signals (procinfo *pi, gdb_sigset_t *save)
static fltset_t * proc_get_traced_faults (procinfo *pi, fltset_t *save)
static sysset_t * proc_get_traced_sysentry (procinfo *pi, sysset_t *save)
static sysset_t * proc_get_traced_sysexit (procinfo *pi, sysset_t *save)
static int proc_clear_current_fault (procinfo *pi)
static int proc_clear_current_signal (procinfo *pi)
static gdb_gregset_tproc_get_gregs (procinfo *pi)
static gdb_fpregset_tproc_get_fpregs (procinfo *pi)
static int proc_set_gregs (procinfo *pi)
static int proc_set_fpregs (procinfo *pi)
static int proc_kill (procinfo *pi, int signo)
static int proc_parent_pid (procinfo *pi)
static int proc_set_watchpoint (procinfo *pi, CORE_ADDR addr, int len, int wflags)
static int proc_get_nthreads (procinfo *pi)
static int proc_delete_dead_threads (procinfo *parent, procinfo *thread, void *ignore)
static int proc_update_threads (procinfo *pi)
static ptid_t do_attach (ptid_t ptid)
static void do_detach (int signo)
static void proc_trace_syscalls_1 (procinfo *pi, int syscallnum, int entry_or_exit, int mode, int from_tty)
static int procfs_debug_inferior (procinfo *pi)
static int syscall_is_lwp_exit (procinfo *pi, int scall)
static int syscall_is_exit (procinfo *pi, int scall)
static int syscall_is_exec (procinfo *pi, int scall)
static int syscall_is_lwp_create (procinfo *pi, int scall)
static void remove_dbx_link_breakpoint (void)
static int invalidate_cache (procinfo *parent, procinfo *pi, void *ptr)
static void unconditionally_kill_inferior (procinfo *pi)
static void procfs_init_inferior (struct target_ops *ops, int pid)
static void procfs_set_exec_trap (void)
static void procfs_inferior_created (struct target_ops *ops, int from_tty)
static int procfs_notice_thread (procinfo *pi, procinfo *thread, void *ptr)
static int procfs_set_watchpoint (ptid_t ptid, CORE_ADDR addr, int len, int rwflag, int after)
static int procfs_stopped_by_watchpoint (void)
static int procfs_stopped_data_address (struct target_ops *targ, CORE_ADDR *addr)
static int procfs_insert_watchpoint (CORE_ADDR addr, int len, int type, struct expression *cond)
static int procfs_remove_watchpoint (CORE_ADDR addr, int len, int type, struct expression *cond)
static int procfs_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
void procfs_use_watchpoints (struct target_ops *t)
static int find_memory_regions_callback (struct prmap *map, find_memory_region_ftype func, void *data)
static char * mappingflags (long flags)
static int info_mappings_callback (struct prmap *map, find_memory_region_ftype ignore, void *unused)
static void info_proc_mappings (procinfo *pi, int summary)
static void proc_trace_syscalls (char *args, int from_tty, int entry_or_exit, int mode)
static void proc_trace_sysentry_cmd (char *args, int from_tty)
static void proc_trace_sysexit_cmd (char *args, int from_tty)
static void proc_untrace_sysentry_cmd (char *args, int from_tty)
static void proc_untrace_sysexit_cmd (char *args, int from_tty)
void _initialize_procfs (void)
ptid_t procfs_first_available (void)

Variables

static char errmsg [128]
static procinfoprocinfo_list
static int dbx_link_bpt_addr = 0
static void * dbx_link_bpt

Define Documentation

#define AS_PROC_NAME_FMT   "/proc/%05d"

Definition at line 360 of file procfs.c.

#define CTL_PROC_NAME_FMT   "/proc/%05d"

Definition at line 359 of file procfs.c.

#define gdb_pr_issyssetmember   prismember

Definition at line 302 of file procfs.c.

#define gdb_praddset (   sp,
  flag 
)    ((void) praddset (sp, flag))

Definition at line 274 of file procfs.c.

Definition at line 288 of file procfs.c.

Referenced by proc_trace_syscalls_1(), procfs_debug_inferior(), and procfs_set_exec_trap().

#define gdb_prdelset (   sp,
  flag 
)    ((void) prdelset (sp, flag))

Definition at line 275 of file procfs.c.

Referenced by procfs_debug_inferior(), and procfs_pass_signals().

Definition at line 295 of file procfs.c.

Referenced by proc_trace_syscalls_1().

#define gdb_premptysysset   premptyset
#define MAIN_PROC_NAME_FMT   "/proc/%05d"

Definition at line 358 of file procfs.c.

Referenced by create_procinfo().

#define MAP_PROC_NAME_FMT   "/proc/%05d"

Definition at line 361 of file procfs.c.

#define MAX_PROC_NAME_SIZE   sizeof("/proc/ttttppppp")

Definition at line 363 of file procfs.c.

Referenced by iterate_over_mappings(), and open_procinfo_files().

#define STATUS_PROC_NAME_FMT   "/proc/%05d"

Definition at line 362 of file procfs.c.


Typedef Documentation

typedef prstatus_t gdb_lwpstatus_t

Definition at line 367 of file procfs.c.

typedef prstatus_t gdb_prstatus_t

Definition at line 366 of file procfs.c.

typedef struct sigaction gdb_sigaction_t

Definition at line 258 of file procfs.c.

typedef siginfo_t gdb_siginfo_t

Definition at line 265 of file procfs.c.

typedef sigset_t gdb_sigset_t

Definition at line 251 of file procfs.c.

typedef struct procinfo procinfo

Enumeration Type Documentation

anonymous enum
Enumerator:
READ_WATCHFLAG 
WRITE_WATCHFLAG 
EXEC_WATCHFLAG 
AFTER_WATCHFLAG 

Definition at line 240 of file procfs.c.

anonymous enum
Enumerator:
FD_CTL 
FD_STATUS 
FD_AS 

Definition at line 538 of file procfs.c.

anonymous enum
Enumerator:
NOKILL 
KILL 

Definition at line 803 of file procfs.c.

anonymous enum
Enumerator:
FLAG_RESET 
FLAG_SET 

Definition at line 1286 of file procfs.c.


Function Documentation

void _initialize_procfs ( void  )
static void close_procinfo_files ( procinfo p) [static]

Definition at line 734 of file procfs.c.

References procinfo::as_fd, procinfo::ctl_fd, and procinfo::status_fd.

Referenced by destroy_one_procinfo(), and invalidate_cache().

static procinfo * create_procinfo ( int  pid,
int  tid 
) [static]
static void dead_procinfo ( procinfo p,
char *  msg,
int  killp 
) [static]
static void destroy_one_procinfo ( procinfo **  list,
procinfo pi 
) [static]
static void destroy_procinfo ( procinfo p) [static]
static ptid_t do_attach ( ptid_t  ptid) [static]
static void do_destroy_procinfo_cleanup ( void *  pi) [static]

Definition at line 798 of file procfs.c.

References destroy_procinfo().

Referenced by procfs_info_proc().

static void do_detach ( int  signo) [static]
static int find_memory_regions_callback ( struct prmap *  map,
find_memory_region_ftype  func,
void *  data 
) [static]

Definition at line 5034 of file procfs.c.

Referenced by proc_find_memory_regions().

static procinfo * find_procinfo ( int  pid,
int  tid 
) [static]
static procinfo * find_procinfo_or_die ( int  pid,
int  tid 
) [static]
static int info_mappings_callback ( struct prmap *  map,
find_memory_region_ftype  ignore,
void *  unused 
) [static]
static void info_proc_mappings ( procinfo pi,
int  summary 
) [static]
static int invalidate_cache ( procinfo parent,
procinfo pi,
void *  ptr 
) [static]
static int iterate_over_mappings ( procinfo pi,
find_memory_region_ftype  child_func,
void *  data,
int(*)(struct prmap *map, find_memory_region_ftype child_func, void *data)  func 
) [static]
static char* mappingflags ( long  flags) [static]

Definition at line 5070 of file procfs.c.

Referenced by info_mappings_callback().

static int open_procinfo_files ( procinfo p,
int  which 
) [static]
static int open_with_retry ( const char *  pathname,
int  flags 
) [static]

Definition at line 509 of file procfs.c.

References sleep(), and exsummary::status.

Referenced by open_procinfo_files().

static int proc_clear_current_fault ( procinfo pi) [static]

Definition at line 2032 of file procfs.c.

References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, and procinfo::tid.

Referenced by do_detach().

static int proc_clear_current_signal ( procinfo pi) [static]

Definition at line 2139 of file procfs.c.

References procinfo::ctl_fd, find_procinfo_or_die(), memcpy(), procinfo::pid, and procinfo::tid.

Referenced by do_detach().

static int proc_delete_dead_threads ( procinfo parent,
procinfo thread,
void *  ignore 
) [static]
static void proc_error ( procinfo pi,
char *  func,
int  line 
) [static]
static int proc_find_memory_regions ( find_memory_region_ftype  func,
void *  data 
) [static]
static long proc_flags ( procinfo pi) [static]
static int proc_get_current_thread ( procinfo pi) [static]
static gdb_fpregset_t* proc_get_fpregs ( procinfo pi) [static]
static gdb_gregset_t* proc_get_gregs ( procinfo pi) [static]
static gdb_sigset_t* proc_get_held_signals ( procinfo pi,
gdb_sigset_t save 
) [static]
static int proc_get_nthreads ( procinfo pi) [static]

Definition at line 2638 of file procfs.c.

Referenced by procfs_info_proc().

static int proc_get_status ( procinfo pi) [static]
static fltset_t* proc_get_traced_faults ( procinfo pi,
fltset_t *  save 
) [static]
static gdb_sigset_t* proc_get_traced_signals ( procinfo pi,
gdb_sigset_t save 
) [static]
static sysset_t* proc_get_traced_sysentry ( procinfo pi,
sysset_t *  save 
) [static]
static sysset_t* proc_get_traced_sysexit ( procinfo pi,
sysset_t *  save 
) [static]
static int proc_iterate_over_threads ( procinfo pi,
int(*)(procinfo *, procinfo *, void *)  func,
void *  ptr 
) [static]
static int proc_kill ( procinfo pi,
int  signo 
) [static]

Definition at line 2366 of file procfs.c.

References procinfo::ctl_fd, FD_CTL, and open_procinfo_files().

Referenced by unconditionally_kill_inferior().

static int proc_modify_flag ( procinfo pi,
long  flag,
long  mode 
) [static]
static int proc_nsysarg ( procinfo pi) [static]

Definition at line 1208 of file procfs.c.

References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.

Referenced by procfs_wait().

static int proc_parent_pid ( procinfo pi) [static]
static int proc_run_process ( procinfo pi,
int  step,
int  signo 
) [static]

Definition at line 1536 of file procfs.c.

References procinfo::ctl_fd, FD_CTL, memset(), open_procinfo_files(), and proc_set_current_signal().

Referenced by procfs_resume(), and procfs_wait().

static int proc_set_current_signal ( procinfo pi,
int  signo 
) [static]
static int proc_set_fpregs ( procinfo pi) [static]
static int proc_set_gregs ( procinfo pi) [static]
static int proc_set_held_signals ( procinfo pi,
gdb_sigset_t sighold 
) [static]
static int proc_set_run_on_last_close ( procinfo pi) [static]

Definition at line 1391 of file procfs.c.

References FLAG_SET, and proc_modify_flag().

Referenced by do_attach(), do_detach(), and procfs_init_inferior().

static int proc_set_traced_faults ( procinfo pi,
fltset_t *  fltset 
) [static]
static int proc_set_traced_signals ( procinfo pi,
gdb_sigset_t sigset 
) [static]
static int proc_set_traced_sysentry ( procinfo pi,
sysset_t *  sysset 
) [static]
static int proc_set_traced_sysexit ( procinfo pi,
sysset_t *  sysset 
) [static]
static int proc_set_watchpoint ( procinfo pi,
CORE_ADDR  addr,
int  len,
int  wflags 
) [static]

Definition at line 2436 of file procfs.c.

References procinfo::ctl_fd, len, and memcpy().

Referenced by procfs_set_watchpoint().

static int proc_stop_process ( procinfo pi) [static]
static long* proc_sysargs ( procinfo pi) [static]

Definition at line 1225 of file procfs.c.

References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.

Referenced by procfs_wait().

static void proc_trace_syscalls ( char *  args,
int  from_tty,
int  entry_or_exit,
int  mode 
) [static]
static void proc_trace_syscalls_1 ( procinfo pi,
int  syscallnum,
int  entry_or_exit,
int  mode,
int  from_tty 
) [static]
static void proc_trace_sysentry_cmd ( char *  args,
int  from_tty 
) [static]

Definition at line 5313 of file procfs.c.

References FLAG_SET, and proc_trace_syscalls().

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

Definition at line 5319 of file procfs.c.

References FLAG_SET, and proc_trace_syscalls().

static int proc_unset_inherit_on_fork ( procinfo pi) [static]

Definition at line 1412 of file procfs.c.

References FLAG_RESET, and proc_modify_flag().

Referenced by procfs_set_exec_trap().

static int proc_unset_run_on_last_close ( procinfo pi) [static]

Definition at line 1401 of file procfs.c.

References FLAG_RESET, and proc_modify_flag().

Referenced by procfs_set_exec_trap().

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

Definition at line 5325 of file procfs.c.

References FLAG_RESET, and proc_trace_syscalls().

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

Definition at line 5331 of file procfs.c.

References FLAG_RESET, and proc_trace_syscalls().

static int proc_update_threads ( procinfo pi) [static]

Definition at line 2851 of file procfs.c.

Referenced by procfs_find_new_threads().

static int proc_wait_for_stop ( procinfo pi) [static]
static void proc_warn ( procinfo pi,
char *  func,
int  line 
) [static]
static int proc_watchpoint_address ( procinfo pi,
CORE_ADDR addr 
) [static]
static int proc_what ( procinfo pi) [static]
static int proc_why ( procinfo pi) [static]
static void procfs_attach ( struct target_ops ops,
char *  args,
int  from_tty 
) [static]
static int procfs_can_use_hw_breakpoint ( int  type,
int  cnt,
int  othertype 
) [static]
static void procfs_create_inferior ( struct target_ops ops,
char *  exec_file,
char *  allargs,
char **  env,
int  from_tty 
) [static]

Definition at line 4605 of file procfs.c.

References _, error(), fork_inferior(), len, p, inferior::pid, procfs_init_inferior(), procfs_set_exec_trap(), and strchr().

Referenced by procfs_target().

static int procfs_debug_inferior ( procinfo pi) [static]
static void procfs_detach ( struct target_ops ops,
char *  args,
int  from_tty 
) [static]
static void procfs_fetch_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
) [static]
static void procfs_files_info ( struct target_ops ignore) [static]
static void procfs_find_new_threads ( struct target_ops ops) [static]

Definition at line 5368 of file procfs.c.

References procinfo::pid, and pid_to_ptid().

Referenced by rw_common(), sol_thread_resume(), sol_thread_wait(), and sol_thread_xfer_partial().

static void procfs_inferior_created ( struct target_ops ops,
int  from_tty 
) [static]
static void procfs_info_proc ( struct target_ops ops,
char *  args,
enum info_proc_what  what 
) [static]
static void procfs_init_inferior ( struct target_ops ops,
int  pid 
) [static]
static int procfs_insert_watchpoint ( CORE_ADDR  addr,
int  len,
int  type,
struct expression cond 
) [static]
static void procfs_kill_inferior ( struct target_ops ops) [static]
static char * procfs_make_note_section ( bfd *  obfd,
int note_size 
) [static]

Definition at line 5547 of file procfs.c.

References _, and error().

Referenced by procfs_target().

static void procfs_mourn_inferior ( struct target_ops ops) [static]
static int procfs_notice_thread ( procinfo pi,
procinfo thread,
void *  ptr 
) [static]
static void procfs_pass_signals ( int  numsigs,
unsigned char *  pass_signals 
) [static]
static char * procfs_pid_to_str ( struct target_ops ops,
ptid_t  ptid 
) [static]

Definition at line 4769 of file procfs.c.

References ptid_get_lwp(), and ptid_get_pid().

Referenced by procfs_target().

static int procfs_region_ok_for_hw_watchpoint ( CORE_ADDR  addr,
int  len 
) [static]

Definition at line 4934 of file procfs.c.

Referenced by procfs_use_watchpoints().

static int procfs_remove_watchpoint ( CORE_ADDR  addr,
int  len,
int  type,
struct expression cond 
) [static]

Definition at line 4927 of file procfs.c.

References inferior_ptid, and procfs_set_watchpoint().

Referenced by procfs_use_watchpoints().

static void procfs_resume ( struct target_ops ops,
ptid_t  ptid,
int  step,
enum gdb_signal  signo 
) [static]
static void procfs_set_exec_trap ( void  ) [static]
static int procfs_set_watchpoint ( ptid_t  ptid,
CORE_ADDR  addr,
int  len,
int  rwflag,
int  after 
) [static]
static void procfs_stop ( ptid_t  ptid) [static]

Definition at line 4268 of file procfs.c.

Referenced by procfs_target().

static int procfs_stopped_by_watchpoint ( void  ) [static]
static int procfs_stopped_data_address ( struct target_ops targ,
CORE_ADDR addr 
) [static]
static void procfs_store_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
) [static]
struct target_ops* procfs_target ( void  ) [read]
static int procfs_thread_alive ( struct target_ops ops,
ptid_t  ptid 
) [static]

Definition at line 4742 of file procfs.c.

References destroy_procinfo(), find_procinfo(), proc_get_status(), ptid_get_lwp(), and ptid_get_pid().

Referenced by procfs_target().

void procfs_use_watchpoints ( struct target_ops t)
static ptid_t procfs_wait ( struct target_ops ops,
ptid_t  ptid,
struct target_waitstatus status,
int  options 
) [static]
static int procfs_xfer_memory ( CORE_ADDR  memaddr,
gdb_byte myaddr,
int  len,
int  dowrite,
struct mem_attrib attrib,
struct target_ops target 
) [static]
static LONGEST procfs_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]
static void remove_dbx_link_breakpoint ( void  ) [static]

Definition at line 3394 of file procfs.c.

References _, deprecated_remove_raw_breakpoint(), target_gdbarch(), and warning().

Referenced by procfs_wait().

static int syscall_is_exec ( procinfo pi,
int  scall 
) [static]

Definition at line 3352 of file procfs.c.

Referenced by procfs_wait().

static int syscall_is_exit ( procinfo pi,
int  scall 
) [static]

Definition at line 3338 of file procfs.c.

Referenced by procfs_wait().

static int syscall_is_lwp_create ( procinfo pi,
int  scall 
) [static]

Definition at line 3376 of file procfs.c.

Referenced by procfs_wait().

static int syscall_is_lwp_exit ( procinfo pi,
int  scall 
) [static]

Definition at line 3324 of file procfs.c.

Referenced by procfs_wait().

static sysset_t * sysset_t_alloc ( procinfo pi) [static]
static int sysset_t_size ( procinfo p) [static]

Definition at line 835 of file procfs.c.

Referenced by proc_get_traced_sysentry(), proc_get_traced_sysexit(), and sysset_t_alloc().

static void unconditionally_kill_inferior ( procinfo pi) [static]

Variable Documentation

void* dbx_link_bpt [static]

Definition at line 2917 of file procfs.c.

int dbx_link_bpt_addr = 0 [static]

Definition at line 2916 of file procfs.c.

char errmsg[128] [static]

Definition at line 421 of file procfs.c.

Definition at line 447 of file procfs.c.

Referenced by create_procinfo().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines