GDB (xrefs)
|
#include "defs.h"
#include "frame.h"
#include "inferior.h"
#include "language.h"
#include "gdbcore.h"
#include "regcache.h"
#include "target.h"
#include "linux-nat.h"
#include "gdbarch.h"
#include "m68k-tdep.h"
#include <sys/dir.h>
#include <signal.h>
#include "nat/gdb_ptrace.h"
#include <sys/user.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <sys/procfs.h>
#include <sys/file.h>
#include <sys/stat.h>
#include "floatformat.h"
#include "gregset.h"
#include "gdb_proc_service.h"
#include "inf-ptrace.h"
Go to the source code of this file.
Classes | |
class | m68k_linux_nat_target |
Macros | |
#define | PTRACE_GET_THREAD_AREA 25 |
#define | NUM_GREGS (18) |
#define | MAX_NUM_REGS (NUM_GREGS + 11) |
#define | FPREG_ADDR(f, n) (&(f)->fpregs[(n) * 3]) |
Functions | |
static int | getregs_supplies (int regno) |
static int | getfpregs_supplies (int regno) |
static void | fetch_register (struct regcache *regcache, int regno) |
static void | old_fetch_inferior_registers (struct regcache *regcache, int regno) |
static void | store_register (const struct regcache *regcache, int regno) |
static void | old_store_inferior_registers (const struct regcache *regcache, int regno) |
void | supply_gregset (struct regcache *regcache, const elf_gregset_t *gregsetp) |
void | fill_gregset (const struct regcache *regcache, elf_gregset_t *gregsetp, int regno) |
static void | fetch_regs (struct regcache *regcache, int tid) |
static void | store_regs (const struct regcache *regcache, int tid, 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) |
static void | fetch_fpregs (struct regcache *regcache, int tid) |
static void | store_fpregs (const struct regcache *regcache, int tid, int regno) |
ps_err_e | ps_get_thread_area (struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base) |
void | _initialize_m68k_linux_nat () |
Variables | |
static m68k_linux_nat_target | the_m68k_linux_nat_target |
static const int | regmap [] |
static int | have_ptrace_getregs |
Definition at line 307 of file m68k-linux-nat.c.
Referenced by fill_fpregset(), and supply_fpregset().
#define MAX_NUM_REGS (NUM_GREGS + 11) |
Definition at line 87 of file m68k-linux-nat.c.
#define NUM_GREGS (18) |
Definition at line 86 of file m68k-linux-nat.c.
Referenced by fill_gregset(), and getregs_supplies().
#define PTRACE_GET_THREAD_AREA 25 |
Definition at line 58 of file m68k-linux-nat.c.
Referenced by ps_get_thread_area().
void _initialize_m68k_linux_nat | ( | ) |
Definition at line 514 of file m68k-linux-nat.c.
References add_inf_child_target(), linux_target, and the_m68k_linux_nat_target.
|
static |
Definition at line 386 of file m68k-linux-nat.c.
Referenced by m68k_linux_nat_target::fetch_registers().
|
static |
Definition at line 117 of file m68k-linux-nat.c.
References reg_buffer::arch(), gdbarch_register_name(), get_ptrace_pid(), M68K_MAX_REGISTER_SIZE, regcache::ptid(), ptrace, reg_buffer::raw_supply(), register_size(), and regmap.
Referenced by old_fetch_inferior_registers().
|
static |
Definition at line 293 of file m68k-linux-nat.c.
Referenced by m68k_linux_nat_target::fetch_registers().
void fill_fpregset | ( | const struct regcache * | regcache, |
elf_fpregset_t * | fpregsetp, | ||
int | regno ) |
Definition at line 332 of file m68k-linux-nat.c.
References reg_buffer::arch(), FPREG_ADDR, gdbarch_fp0_regnum(), M68K_FPC_REGNUM, M68K_FPI_REGNUM, and reg_buffer::raw_collect().
void fill_gregset | ( | const struct regcache * | regcache, |
elf_gregset_t * | gregsetp, | ||
int | regno ) |
Definition at line 237 of file m68k-linux-nat.c.
References NUM_GREGS, reg_buffer::raw_collect(), and regmap.
|
static |
Definition at line 96 of file m68k-linux-nat.c.
References M68K_FP0_REGNUM, and M68K_FPI_REGNUM.
Referenced by m68k_linux_nat_target::fetch_registers(), ppc_obsd_nat_target::fetch_registers(), m68k_linux_nat_target::store_registers(), and ppc_obsd_nat_target::store_registers().
|
static |
Definition at line 90 of file m68k-linux-nat.c.
References NUM_GREGS.
Referenced by m68k_linux_nat_target::fetch_registers(), and m68k_linux_nat_target::store_registers().
|
static |
Definition at line 145 of file m68k-linux-nat.c.
References reg_buffer::arch(), fetch_register(), and gdbarch_num_regs().
Referenced by m68k_linux_nat_target::fetch_registers().
|
static |
Definition at line 197 of file m68k-linux-nat.c.
References reg_buffer::arch(), gdbarch_num_regs(), and store_register().
Referenced by m68k_linux_nat_target::store_registers().
ps_err_e ps_get_thread_area | ( | struct ps_prochandle * | ph, |
lwpid_t | lwpid, | ||
int | idx, | ||
void ** | base ) |
Definition at line 498 of file m68k-linux-nat.c.
References ptrace, and PTRACE_GET_THREAD_AREA.
|
static |
Definition at line 390 of file m68k-linux-nat.c.
Referenced by m68k_linux_nat_target::store_registers().
|
static |
Definition at line 165 of file m68k-linux-nat.c.
References reg_buffer::arch(), gdbarch_register_name(), get_ptrace_pid(), M68K_MAX_REGISTER_SIZE, regcache::ptid(), ptrace, reg_buffer::raw_collect(), register_size(), and regmap.
Referenced by old_store_inferior_registers().
|
static |
Definition at line 297 of file m68k-linux-nat.c.
Referenced by m68k_linux_nat_target::store_registers().
void supply_fpregset | ( | struct regcache * | regcache, |
const elf_fpregset_t * | fpregsetp ) |
Definition at line 313 of file m68k-linux-nat.c.
References reg_buffer::arch(), FPREG_ADDR, gdbarch_fp0_regnum(), M68K_FPC_REGNUM, M68K_FPI_REGNUM, M68K_FPS_REGNUM, and reg_buffer::raw_supply().
void supply_gregset | ( | struct regcache * | regcache, |
const elf_gregset_t * | gregsetp ) |
Definition at line 219 of file m68k-linux-nat.c.
References reg_buffer::arch(), gdbarch_pc_regnum(), gdbarch_ps_regnum(), gdbarch_sp_regnum(), M68K_D0_REGNUM, reg_buffer::raw_supply(), and regmap.
|
static |
Definition at line 102 of file m68k-linux-nat.c.
Referenced by m68k_linux_nat_target::fetch_registers(), and m68k_linux_nat_target::store_registers().
|
static |
Definition at line 73 of file m68k-linux-nat.c.
Referenced by fetch_register(), fill_gregset(), store_register(), and supply_gregset().
|
static |
Definition at line 70 of file m68k-linux-nat.c.
Referenced by _initialize_m68k_linux_nat().