GDB (API)
Defines | Typedefs | Enumerations | Functions
/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.

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

struct target_opsprocfs_target (void)
void procfs_use_watchpoints (struct target_ops *t)
void _initialize_procfs (void)
ptid_t procfs_first_available (void)

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.

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

Definition at line 275 of file procfs.c.

Definition at line 295 of file procfs.c.

#define gdb_premptysysset   premptyset

Definition at line 281 of file procfs.c.

#define MAIN_PROC_NAME_FMT   "/proc/%05d"

Definition at line 358 of file procfs.c.

#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.

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

Definition at line 5368 of file procfs.c.

struct target_ops* procfs_target ( void  ) [read]

Definition at line 183 of file procfs.c.

void procfs_use_watchpoints ( struct target_ops t)

Definition at line 4945 of file procfs.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines