GDB (API)
|
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
#include "regcache.h"
#include "regset.h"
#include "linux-nat.h"
#include "amd64-linux-tdep.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/debugreg.h>
#include <sys/syscall.h>
#include <sys/procfs.h>
#include <sys/user.h>
#include <asm/prctl.h>
#include <asm/ptrace.h>
#include <sys/reg.h>
#include "gdb_proc_service.h"
#include "gregset.h"
#include "amd64-tdep.h"
#include "i386-linux-tdep.h"
#include "amd64-nat.h"
#include "i386-nat.h"
#include "i386-xstate.h"
Go to the source code of this file.
Defines | |
#define | PTRACE_GETREGSET 0x4204 |
#define | PTRACE_SETREGSET 0x4205 |
#define | PTRACE_GET_THREAD_AREA 25 |
#define | PTRACE_ARCH_PRCTL 30 |
#define | cpt_si_pid _sifields._kill._pid |
#define | cpt_si_uid _sifields._kill._uid |
#define | cpt_si_timerid _sifields._timer._tid |
#define | cpt_si_overrun _sifields._timer._overrun |
#define | cpt_si_status _sifields._sigchld._status |
#define | cpt_si_utime _sifields._sigchld._utime |
#define | cpt_si_stime _sifields._sigchld._stime |
#define | cpt_si_ptr _sifields._rt._sigval.sival_ptr |
#define | cpt_si_addr _sifields._sigfault._addr |
#define | cpt_si_band _sifields._sigpoll._band |
#define | cpt_si_fd _sifields._sigpoll._fd |
#define | si_timerid si_timer1 |
#define | si_overrun si_timer2 |
#define | AMD64_LINUX_USER64_CS 0x33 |
#define | AMD64_LINUX_X32_DS 0x2b |
Typedefs | |
typedef int | compat_int_t |
typedef unsigned int | compat_uptr_t |
typedef int | compat_time_t |
typedef int | compat_timer_t |
typedef int | compat_clock_t |
typedef union compat_sigval | compat_sigval_t |
typedef struct compat_siginfo | compat_siginfo_t |
typedef struct compat_x32_clock | compat_x32_clock_t |
typedef struct compat_x32_siginfo | compat_x32_siginfo_t |
Functions | |
void | supply_gregset (struct regcache *regcache, const elf_gregset_t *gregsetp) |
void | fill_gregset (const struct regcache *regcache, elf_gregset_t *gregsetp, int regnum) |
void | supply_fpregset (struct regcache *regcache, const elf_fpregset_t *fpregsetp) |
void | fill_fpregset (const struct regcache *regcache, elf_fpregset_t *fpregsetp, int regnum) |
ps_err_e | ps_get_thread_area (const struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base) |
void | _initialize_amd64_linux_nat (void) |
#define AMD64_LINUX_USER64_CS 0x33 |
Definition at line 1035 of file amd64-linux-nat.c.
#define AMD64_LINUX_X32_DS 0x2b |
Definition at line 1036 of file amd64-linux-nat.c.
#define cpt_si_addr _sifields._sigfault._addr |
Definition at line 739 of file amd64-linux-nat.c.
#define cpt_si_band _sifields._sigpoll._band |
Definition at line 740 of file amd64-linux-nat.c.
#define cpt_si_fd _sifields._sigpoll._fd |
Definition at line 741 of file amd64-linux-nat.c.
#define cpt_si_overrun _sifields._timer._overrun |
Definition at line 734 of file amd64-linux-nat.c.
#define cpt_si_pid _sifields._kill._pid |
Definition at line 731 of file amd64-linux-nat.c.
#define cpt_si_ptr _sifields._rt._sigval.sival_ptr |
Definition at line 738 of file amd64-linux-nat.c.
#define cpt_si_status _sifields._sigchld._status |
Definition at line 735 of file amd64-linux-nat.c.
#define cpt_si_stime _sifields._sigchld._stime |
Definition at line 737 of file amd64-linux-nat.c.
#define cpt_si_timerid _sifields._timer._tid |
Definition at line 733 of file amd64-linux-nat.c.
#define cpt_si_uid _sifields._kill._uid |
Definition at line 732 of file amd64-linux-nat.c.
#define cpt_si_utime _sifields._sigchld._utime |
Definition at line 736 of file amd64-linux-nat.c.
#define PTRACE_ARCH_PRCTL 30 |
#define PTRACE_GET_THREAD_AREA 25 |
#define PTRACE_GETREGSET 0x4204 |
Definition at line 62 of file amd64-linux-nat.c.
#define PTRACE_SETREGSET 0x4205 |
Definition at line 66 of file amd64-linux-nat.c.
#define si_overrun si_timer2 |
Definition at line 749 of file amd64-linux-nat.c.
#define si_timerid si_timer1 |
Definition at line 746 of file amd64-linux-nat.c.
typedef int compat_clock_t |
Definition at line 594 of file amd64-linux-nat.c.
typedef int compat_int_t |
Definition at line 589 of file amd64-linux-nat.c.
typedef struct compat_siginfo compat_siginfo_t |
typedef union compat_sigval compat_sigval_t |
typedef int compat_time_t |
Definition at line 592 of file amd64-linux-nat.c.
typedef int compat_timer_t |
Definition at line 593 of file amd64-linux-nat.c.
typedef unsigned int compat_uptr_t |
Definition at line 590 of file amd64-linux-nat.c.
typedef struct compat_x32_clock compat_x32_clock_t |
typedef struct compat_x32_siginfo compat_x32_siginfo_t |
void _initialize_amd64_linux_nat | ( | void | ) |
Definition at line 1170 of file amd64-linux-nat.c.
void fill_fpregset | ( | const struct regcache * | regcache, |
elf_fpregset_t * | fpregsetp, | ||
int | regnum | ||
) |
Definition at line 146 of file amd64-linux-nat.c.
void fill_gregset | ( | const struct regcache * | regcache, |
elf_gregset_t * | gregsetp, | ||
int | regnum | ||
) |
Definition at line 124 of file amd64-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 485 of file amd64-linux-nat.c.
void supply_fpregset | ( | struct regcache * | regcache, |
const elf_fpregset_t * | fpregsetp | ||
) |
Definition at line 136 of file amd64-linux-nat.c.
void supply_gregset | ( | struct regcache * | regcache, |
const elf_gregset_t * | gregsetp | ||
) |
Definition at line 114 of file amd64-linux-nat.c.