GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/linux-nat.c File Reference
#include "defs.h"
#include "inferior.h"
#include "target.h"
#include "nat/linux-nat.h"
#include "nat/linux-waitpid.h"
#include "gdb_string.h"
#include "gdb_wait.h"
#include "gdb_assert.h"
#include <sys/ptrace.h>
#include "linux-nat.h"
#include "linux-ptrace.h"
#include "linux-procfs.h"
#include "linux-fork.h"
#include "gdbthread.h"
#include "gdbcmd.h"
#include "regcache.h"
#include "regset.h"
#include "inf-child.h"
#include "inf-ptrace.h"
#include "auxv.h"
#include <sys/procfs.h>
#include "elf-bfd.h"
#include "gregset.h"
#include "gdbcore.h"
#include <ctype.h>
#include "gdb_stat.h"
#include <fcntl.h>
#include "inf-loop.h"
#include "event-loop.h"
#include "event-top.h"
#include <pwd.h>
#include <sys/types.h>
#include "gdb_dirent.h"
#include "xml-support.h"
#include "terminal.h"
#include <sys/vfs.h>
#include "solib.h"
#include "linux-osdata.h"
#include "linux-tdep.h"
#include "symfile.h"
#include "agent.h"
#include "tracepoint.h"
#include "exceptions.h"
#include "buffer.h"
#include "target-descriptions.h"
#include "filestuff.h"

Go to the source code of this file.

Defines

#define SPUFS_MAGIC   0x23c9b64e
#define O_LARGEFILE   0
#define FORMAT   "/proc/%d/task/%ld/comm"
#define COMM_LEN   16

Functions

struct lwp_infoiterate_over_lwps (ptid_t filter, int(*callback)(struct lwp_info *, void *), void *data)
void linux_nat_switch_fork (ptid_t new_ptid)
int lin_lwp_attach_lwp (ptid_t ptid)
void linux_stop_lwp (struct lwp_info *lwp)
void linux_nat_set_status_is_event (struct target_ops *t, int(*status_is_event)(int status))
void linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigset_t *ignored)
struct target_opslinux_target (void)
struct target_opslinux_trad_target (CORE_ADDR(*register_u_offset)(struct gdbarch *, int, int))
void linux_nat_add_target (struct target_ops *t)
void linux_nat_set_new_thread (struct target_ops *t, void(*new_thread)(struct lwp_info *))
void linux_nat_set_new_fork (struct target_ops *t, linux_nat_new_fork_ftype *new_fork)
void linux_nat_set_forget_process (struct target_ops *t, linux_nat_forget_process_ftype *fn)
void linux_nat_forget_process (pid_t pid)
void linux_nat_set_siginfo_fixup (struct target_ops *t, int(*siginfo_fixup)(siginfo_t *, gdb_byte *, int))
void linux_nat_set_prepare_to_resume (struct target_ops *t, void(*prepare_to_resume)(struct lwp_info *))
int linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo)
void _initialize_linux_nat (void)
void lin_thread_get_thread_signals (sigset_t *set)

Variables

struct simple_pid_list * stopped_pids
struct lwp_infolwp_list
struct sigaction sigchld_action
int linux_multi_process = 1
initialize_file_ftype _initialize_linux_nat

Define Documentation

#define COMM_LEN   16
#define FORMAT   "/proc/%d/task/%ld/comm"
#define O_LARGEFILE   0

Definition at line 173 of file linux-nat.c.

#define SPUFS_MAGIC   0x23c9b64e

Definition at line 74 of file linux-nat.c.


Function Documentation

void _initialize_linux_nat ( void  )

Definition at line 4956 of file linux-nat.c.

struct lwp_info* iterate_over_lwps ( ptid_t  filter,
int(*)(struct lwp_info *, void *)  callback,
void *  data 
) [read]

Definition at line 1029 of file linux-nat.c.

Definition at line 1173 of file linux-nat.c.

void lin_thread_get_thread_signals ( sigset_t *  set)

Definition at line 5014 of file linux-nat.c.

void linux_nat_add_target ( struct target_ops t)

Definition at line 4814 of file linux-nat.c.

void linux_nat_forget_process ( pid_t  pid)

Definition at line 4902 of file linux-nat.c.

int linux_nat_get_siginfo ( ptid_t  ptid,
siginfo_t *  siginfo 
)

Definition at line 4934 of file linux-nat.c.

Definition at line 4892 of file linux-nat.c.

void linux_nat_set_new_fork ( struct target_ops t,
linux_nat_new_fork_ftype new_fork 
)

Definition at line 4882 of file linux-nat.c.

void linux_nat_set_new_thread ( struct target_ops t,
void(*)(struct lwp_info *)  new_thread 
)

Definition at line 4870 of file linux-nat.c.

void linux_nat_set_prepare_to_resume ( struct target_ops t,
void(*)(struct lwp_info *)  prepare_to_resume 
)

Definition at line 4924 of file linux-nat.c.

void linux_nat_set_siginfo_fixup ( struct target_ops t,
int(*)(siginfo_t *, gdb_byte *, int siginfo_fixup 
)

Definition at line 4912 of file linux-nat.c.

void linux_nat_set_status_is_event ( struct target_ops t,
int(*)(int status)  status_is_event 
)

Definition at line 2560 of file linux-nat.c.

void linux_nat_switch_fork ( ptid_t  new_ptid)

Definition at line 1055 of file linux-nat.c.

void linux_proc_pending_signals ( int  pid,
sigset_t *  pending,
sigset_t *  blocked,
sigset_t *  ignored 
)

Definition at line 4295 of file linux-nat.c.

void linux_stop_lwp ( struct lwp_info lwp)

Definition at line 2402 of file linux-nat.c.

struct target_ops* linux_target ( void  ) [read]

Definition at line 4480 of file linux-nat.c.

struct target_ops* linux_trad_target ( CORE_ADDR(*)(struct gdbarch *, int, int register_u_offset) [read]

Definition at line 4491 of file linux-nat.c.


Variable Documentation

Definition at line 4532 of file linux-nat.c.

struct lwp_info* lwp_list

Definition at line 793 of file linux-nat.c.

struct sigaction sigchld_action

Definition at line 807 of file linux-nat.c.

struct simple_pid_list* stopped_pids

Definition at line 224 of file linux-nat.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines