|
GDB (xrefs)
|
#include "defs.h"#include "frame.h"#include "inferior.h"#include "language.h"#include "gdbcore.h"#include "gdb_string.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/file.h>#include "gdb_stat.h"#include "floatformat.h"#include "gregset.h"#include "gdb_proc_service.h"Go to the source code of this file.
| #define FPREG_ADDR | ( | f, | |
| n | |||
| ) | (&(f)->fpregs[(n) * 3]) |
Definition at line 310 of file m68klinux-nat.c.
Referenced by fill_fpregset(), and supply_fpregset().
| #define MAX_NUM_REGS (NUM_GREGS + 11) |
Definition at line 76 of file m68klinux-nat.c.
| #define NUM_GREGS (18) |
Definition at line 75 of file m68klinux-nat.c.
Referenced by fill_gregset(), and getregs_supplies().
| #define PTRACE_GET_THREAD_AREA 25 |
Definition at line 58 of file m68klinux-nat.c.
Referenced by ps_get_thread_area().
| void _initialize_m68k_linux_nat | ( | void | ) |
Definition at line 600 of file m68klinux-nat.c.
References deprecated_add_core_fns(), 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.
| static void fetch_core_registers | ( | struct regcache * | regcache, |
| char * | core_reg_sect, | ||
| unsigned | core_reg_size, | ||
| int | which, | ||
| CORE_ADDR | reg_addr | ||
| ) | [static] |
Definition at line 529 of file m68klinux-nat.c.
References _, memcpy(), supply_fpregset(), supply_gregset(), and warning().
| static void fetch_fpregs | ( | struct regcache * | regcache, |
| int | tid | ||
| ) | [static] |
Definition at line 392 of file m68klinux-nat.c.
Referenced by m68k_linux_fetch_inferior_registers().
| static void fetch_register | ( | struct regcache * | regcache, |
| int | regno | ||
| ) | [static] |
Definition at line 106 of file m68klinux-nat.c.
References _, error(), gdbarch_register_name(), get_regcache_arch(), inferior_ptid, gdb::printing::long, MAX_REGISTER_SIZE, memcpy(), ptid_get_lwp(), ptid_get_pid(), ptrace(), regcache_raw_supply(), register_size(), regmap, and safe_strerror().
Referenced by old_fetch_inferior_registers().
| static void fetch_regs | ( | struct regcache * | regcache, |
| int | tid | ||
| ) | [static] |
Definition at line 296 of file m68klinux-nat.c.
Referenced by m68k_linux_fetch_inferior_registers().
| void fill_fpregset | ( | const struct regcache * | regcache, |
| elf_fpregset_t * | fpregsetp, | ||
| int | regno | ||
| ) |
Definition at line 336 of file m68klinux-nat.c.
References FPREG_ADDR, gdbarch_fp0_regnum(), get_regcache_arch(), M68K_FPC_REGNUM, M68K_FPI_REGNUM, and regcache_raw_collect().
| void fill_gregset | ( | const struct regcache * | regcache, |
| elf_gregset_t * | gregsetp, | ||
| int | regno | ||
| ) |
Definition at line 240 of file m68klinux-nat.c.
References NUM_GREGS, regcache_raw_collect(), and regmap.
| static int getfpregs_supplies | ( | int | regno | ) | [static] |
Definition at line 85 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().
| static int getregs_supplies | ( | int | regno | ) | [static] |
Definition at line 79 of file m68klinux-nat.c.
References NUM_GREGS.
Referenced by m68k_linux_fetch_inferior_registers(), and m68k_linux_store_inferior_registers().
| static void m68k_linux_fetch_inferior_registers | ( | struct target_ops * | ops, |
| struct regcache * | regcache, | ||
| int | regno | ||
| ) | [static] |
Definition at line 409 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 void m68k_linux_store_inferior_registers | ( | struct target_ops * | ops, |
| struct regcache * | regcache, | ||
| int | regno | ||
| ) | [static] |
Definition at line 466 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().
| static void old_fetch_inferior_registers | ( | struct regcache * | regcache, |
| int | regno | ||
| ) | [static] |
Definition at line 140 of file m68klinux-nat.c.
References fetch_register(), gdbarch_num_regs(), and get_regcache_arch().
Referenced by m68k_linux_fetch_inferior_registers().
| static void old_store_inferior_registers | ( | const struct regcache * | regcache, |
| int | regno | ||
| ) | [static] |
Definition at line 198 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 570 of file m68klinux-nat.c.
References PS_ERR, PS_OK, ptrace(), and PTRACE_GET_THREAD_AREA.
| static void store_fpregs | ( | const struct regcache * | regcache, |
| int | tid, | ||
| int | regno | ||
| ) | [static] |
Definition at line 396 of file m68klinux-nat.c.
Referenced by m68k_linux_store_inferior_registers().
| static void store_register | ( | const struct regcache * | regcache, |
| int | regno | ||
| ) | [static] |
Definition at line 160 of file m68klinux-nat.c.
References _, error(), gdbarch_register_name(), get_regcache_arch(), inferior_ptid, gdb::printing::long, MAX_REGISTER_SIZE, memcpy(), ptid_get_lwp(), ptid_get_pid(), ptrace(), regcache_raw_collect(), register_size(), regmap, and safe_strerror().
Referenced by old_store_inferior_registers().
| static void store_regs | ( | const struct regcache * | regcache, |
| int | tid, | ||
| int | regno | ||
| ) | [static] |
Definition at line 300 of file m68klinux-nat.c.
Referenced by m68k_linux_store_inferior_registers().
| void supply_fpregset | ( | struct regcache * | regcache, |
| const elf_fpregset_t * | fpregsetp | ||
| ) |
Definition at line 316 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().
| void supply_gregset | ( | struct regcache * | regcache, |
| const elf_gregset_t * | gregsetp | ||
| ) |
Definition at line 220 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.
int have_ptrace_getregs [static] |
0
Definition at line 91 of file m68klinux-nat.c.
struct core_fns linux_elf_core_fns [static] |
{
bfd_target_elf_flavour,
default_check_format,
default_core_sniffer,
fetch_core_registers,
NULL
}
Definition at line 588 of file m68klinux-nat.c.
{
PT_D0, PT_D1, PT_D2, PT_D3, PT_D4, PT_D5, PT_D6, PT_D7,
PT_A0, PT_A1, PT_A2, PT_A3, PT_A4, PT_A5, PT_A6, PT_USP,
PT_SR, PT_PC,
21, 24, 27, 30, 33, 36, 39, 42,
45, 46, 47
}
Definition at line 62 of file m68klinux-nat.c.
Referenced by fetch_register(), fill_gregset(), store_register(), and supply_gregset().
1.7.6.1