GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/i386-linux-nat.c File Reference
#include "defs.h"
#include "i386-nat.h"
#include "inferior.h"
#include "gdbcore.h"
#include "regcache.h"
#include "regset.h"
#include "target.h"
#include "linux-nat.h"
#include "linux-btrace.h"
#include "btrace.h"
#include "gdb_assert.h"
#include "gdb_string.h"
#include "elf/common.h"
#include <sys/uio.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#include <sys/procfs.h>
#include "gregset.h"
#include "i387-tdep.h"
#include "i386-tdep.h"
#include "i386-linux-tdep.h"
#include "gdb_proc_service.h"
#include "i386-xstate.h"

Go to the source code of this file.

Defines

#define ORIG_EAX   -1
#define PTRACE_GETREGSET   0x4204
#define PTRACE_SETREGSET   0x4205
#define GETREGS_SUPPLIES(regno)   ((0 <= (regno) && (regno) <= 15) || (regno) == I386_LINUX_ORIG_EAX_REGNUM)
#define GETFPXREGS_SUPPLIES(regno)   (I386_ST0_REGNUM <= (regno) && (regno) < I386_SSE_NUM_REGS)
#define GETXSTATEREGS_SUPPLIES(regno)   (I386_ST0_REGNUM <= (regno) && (regno) < I386_AVX_NUM_REGS)
#define PTRACE_GET_THREAD_AREA   25
#define LINUX_SYSCALL_LEN   (sizeof linux_syscall)
#define LINUX_SYSCALL_REGNUM   I386_EAX_REGNUM
#define SYS_sigreturn   0x77
#define SYS_rt_sigreturn   0xad
#define LINUX_SIGCONTEXT_EFLAGS_OFFSET   (64)

Functions

void supply_gregset (struct regcache *regcache, const elf_gregset_t *gregsetp)
void fill_gregset (const struct regcache *regcache, elf_gregset_t *gregsetp, int regno)
void supply_fpregset (struct regcache *regcache, const elf_fpregset_t *fpregsetp)
void fill_fpregset (const struct regcache *regcache, elf_fpregset_t *fpregsetp, int regno)
ps_err_e ps_get_thread_area (const struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base)
void _initialize_i386_linux_nat (void)

Variables

int have_ptrace_getregs
int have_ptrace_getfpxregs
initialize_file_ftype _initialize_i386_linux_nat

Define Documentation

#define GETFPXREGS_SUPPLIES (   regno)    (I386_ST0_REGNUM <= (regno) && (regno) < I386_SSE_NUM_REGS)

Definition at line 101 of file i386-linux-nat.c.

#define GETREGS_SUPPLIES (   regno)    ((0 <= (regno) && (regno) <= 15) || (regno) == I386_LINUX_ORIG_EAX_REGNUM)

Definition at line 98 of file i386-linux-nat.c.

#define GETXSTATEREGS_SUPPLIES (   regno)    (I386_ST0_REGNUM <= (regno) && (regno) < I386_AVX_NUM_REGS)

Definition at line 104 of file i386-linux-nat.c.

#define LINUX_SIGCONTEXT_EFLAGS_OFFSET   (64)

Definition at line 910 of file i386-linux-nat.c.

#define LINUX_SYSCALL_LEN   (sizeof linux_syscall)

Definition at line 894 of file i386-linux-nat.c.

Definition at line 897 of file i386-linux-nat.c.

#define ORIG_EAX   -1

Definition at line 44 of file i386-linux-nat.c.

#define PTRACE_GET_THREAD_AREA   25
#define PTRACE_GETREGSET   0x4204

Definition at line 64 of file i386-linux-nat.c.

#define PTRACE_SETREGSET   0x4205

Definition at line 68 of file i386-linux-nat.c.

#define SYS_rt_sigreturn   0xad

Definition at line 906 of file i386-linux-nat.c.

#define SYS_sigreturn   0x77

Definition at line 903 of file i386-linux-nat.c.


Function Documentation

void _initialize_i386_linux_nat ( void  )

Definition at line 1097 of file i386-linux-nat.c.

void fill_fpregset ( const struct regcache *  regcache,
elf_fpregset_t *  fpregsetp,
int  regno 
)

Definition at line 307 of file i386-linux-nat.c.

void fill_gregset ( const struct regcache *  regcache,
elf_gregset_t gregsetp,
int  regno 
)

Definition at line 221 of file i386-linux-nat.c.

ps_err_e ps_get_thread_area ( const struct ps_prochandle ph,
lwpid_t  lwpid,
int  idx,
void **  base 
)

Definition at line 852 of file i386-linux-nat.c.

void supply_fpregset ( struct regcache *  regcache,
const elf_fpregset_t *  fpregsetp 
)

Definition at line 297 of file i386-linux-nat.c.

void supply_gregset ( struct regcache *  regcache,
const elf_gregset_t gregsetp 
)

Definition at line 201 of file i386-linux-nat.c.


Variable Documentation

Initial value:



  0

Definition at line 124 of file i386-linux-nat.c.

Initial value:



  0

Definition at line 108 of file i386-linux-nat.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines