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 "m68k-tdep.h"
#include <sys/dir.h>
#include <signal.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <sys/procfs.h>
#include <sys/reg.h>
#include <sys/file.h>
#include <sys/stat.h>
#include "floatformat.h"
#include "gregset.h"
#include "gdb_proc_service.h"
Go to the source code of this file.
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]) |
Variables | |
static const int | regmap [] |
static int | have_ptrace_getregs |
#define FPREG_ADDR | ( | f, | |
n | |||
) | (&(f)->fpregs[(n) * 3]) |
Definition at line 307 of file m68klinux-nat.c.
Referenced by fill_fpregset(), and supply_fpregset().
#define MAX_NUM_REGS (NUM_GREGS + 11) |
Definition at line 73 of file m68klinux-nat.c.
#define NUM_GREGS (18) |
Definition at line 72 of file m68klinux-nat.c.
Referenced by fill_gregset(), and getregs_supplies().
#define PTRACE_GET_THREAD_AREA 25 |
Definition at line 55 of file m68klinux-nat.c.
Referenced by ps_get_thread_area().
void _initialize_m68k_linux_nat | ( | void | ) |
Definition at line 529 of file m68klinux-nat.c.
References linux_nat_add_target(), linux_target(), m68k_linux_fetch_inferior_registers(), m68k_linux_store_inferior_registers(), target_ops::to_fetch_registers, and target_ops::to_store_registers.
Definition at line 360 of file m68klinux-nat.c.
References _, perror_with_name(), ptrace(), PTRACE_GETFPREGS, and supply_fpregset().
Referenced by m68k_linux_fetch_inferior_registers().
Definition at line 103 of file m68klinux-nat.c.
References _, error(), gdbarch_register_name(), get_regcache_arch(), inferior_ptid, gdb.printing::long, MAX_REGISTER_SIZE, ptid_get_lwp(), ptid_get_pid(), ptrace(), regcache_raw_supply(), register_size(), regmap, and safe_strerror().
Referenced by old_fetch_inferior_registers().
Definition at line 254 of file m68klinux-nat.c.
References _, have_ptrace_getregs, perror_with_name(), ptrace(), PTRACE_GETREGS, and supply_gregset().
Referenced by m68k_linux_fetch_inferior_registers().
Definition at line 333 of file m68klinux-nat.c.
References FPREG_ADDR, gdbarch_fp0_regnum(), get_regcache_arch(), M68K_FPC_REGNUM, M68K_FPI_REGNUM, and regcache_raw_collect().
Referenced by store_fpregs().
Definition at line 237 of file m68klinux-nat.c.
References NUM_GREGS, regcache_raw_collect(), and regmap.
Referenced by store_regs().
Definition at line 82 of file m68klinux-nat.c.
References M68K_FP0_REGNUM, and M68K_FPI_REGNUM.
Referenced by m68k_linux_fetch_inferior_registers(), m68k_linux_store_inferior_registers(), ppcobsd_fetch_registers(), and ppcobsd_store_registers().
Definition at line 76 of file m68klinux-nat.c.
References NUM_GREGS.
Referenced by m68k_linux_fetch_inferior_registers(), and m68k_linux_store_inferior_registers().
|
static |
Definition at line 406 of file m68klinux-nat.c.
References _, fetch_fpregs(), fetch_regs(), getfpregs_supplies(), getregs_supplies(), have_ptrace_getregs, inferior_ptid, internal_error(), old_fetch_inferior_registers(), ptid_get_lwp(), and ptid_get_pid().
Referenced by _initialize_m68k_linux_nat().
|
static |
Definition at line 463 of file m68klinux-nat.c.
References _, getfpregs_supplies(), getregs_supplies(), have_ptrace_getregs, inferior_ptid, internal_error(), old_store_inferior_registers(), ptid_get_lwp(), ptid_get_pid(), store_fpregs(), and store_regs().
Referenced by _initialize_m68k_linux_nat().
Definition at line 137 of file m68klinux-nat.c.
References fetch_register(), gdbarch_num_regs(), and get_regcache_arch().
Referenced by m68k_linux_fetch_inferior_registers().
Definition at line 195 of file m68klinux-nat.c.
References gdbarch_num_regs(), get_regcache_arch(), and store_register().
Referenced by m68k_linux_store_inferior_registers().
ps_err_e ps_get_thread_area | ( | const struct ps_prochandle * | ph, |
lwpid_t | lwpid, | ||
int | idx, | ||
void ** | base | ||
) |
Definition at line 511 of file m68klinux-nat.c.
References PS_ERR, PS_OK, ptrace(), and PTRACE_GET_THREAD_AREA.
Definition at line 374 of file m68klinux-nat.c.
References _, fill_fpregset(), perror_with_name(), ptrace(), PTRACE_GETFPREGS, and PTRACE_SETFPREGS.
Referenced by m68k_linux_store_inferior_registers().
Definition at line 157 of file m68klinux-nat.c.
References _, error(), gdbarch_register_name(), get_regcache_arch(), inferior_ptid, gdb.printing::long, MAX_REGISTER_SIZE, ptid_get_lwp(), ptid_get_pid(), ptrace(), regcache_raw_collect(), register_size(), regmap, and safe_strerror().
Referenced by old_store_inferior_registers().
Definition at line 278 of file m68klinux-nat.c.
References _, fill_gregset(), perror_with_name(), ptrace(), PTRACE_GETREGS, and PTRACE_SETREGS.
Referenced by m68k_linux_store_inferior_registers().
Definition at line 313 of file m68klinux-nat.c.
References FPREG_ADDR, gdbarch_fp0_regnum(), get_regcache_arch(), M68K_FPC_REGNUM, M68K_FPI_REGNUM, M68K_FPS_REGNUM, and regcache_raw_supply().
Referenced by fetch_fpregs().
Definition at line 217 of file m68klinux-nat.c.
References gdbarch_pc_regnum(), gdbarch_ps_regnum(), gdbarch_sp_regnum(), get_regcache_arch(), M68K_D0_REGNUM, regcache_raw_supply(), and regmap.
Referenced by fetch_regs().
|
static |
Definition at line 88 of file m68klinux-nat.c.
Referenced by fetch_regs(), m68k_linux_fetch_inferior_registers(), and m68k_linux_store_inferior_registers().
Definition at line 59 of file m68klinux-nat.c.
Referenced by fetch_register(), fill_gregset(), store_register(), and supply_gregset().