GDB (xrefs)
|
#include "defs.h"
#include "gdbcore.h"
#include "target.h"
#include "inferior.h"
#include "inf-child.h"
#include "inf-ptrace.h"
#include "regcache.h"
#include "symfile.h"
#include "gdb_wait.h"
#include "gdbthread.h"
#include "gdb_bfd.h"
#include <sys/ptrace.h>
#include <asm/ptrace.h>
#include <sys/types.h>
#include "spu-tdep.h"
Go to the source code of this file.
Macros | |
#define | INSTR_SC 0x44000002 |
#define | NR_spu_run 0x0116 |
Variables | |
initialize_file_ftype | _initialize_spu_nat |
#define INSTR_SC 0x44000002 |
Definition at line 40 of file spu-linux-nat.c.
Referenced by parse_spufs_run().
#define NR_spu_run 0x0116 |
Definition at line 41 of file spu-linux-nat.c.
Referenced by parse_spufs_run().
void _initialize_spu_nat | ( | void | ) |
Definition at line 638 of file spu-linux-nat.c.
References add_target(), inf_ptrace_target(), spu_can_use_hw_breakpoint(), spu_child_post_attach(), spu_child_post_startup_inferior(), spu_child_wait(), spu_fetch_inferior_registers(), spu_store_inferior_registers(), spu_xfer_partial(), target_ops::to_can_use_hw_breakpoint, target_ops::to_fetch_registers, target_ops::to_post_attach, target_ops::to_post_startup_inferior, target_ops::to_store_registers, target_ops::to_wait, and target_ops::to_xfer_partial.
Definition at line 126 of file spu-linux-nat.c.
References fetch_ppc_memory_1(), inferior_ptid, len, ptid_get_lwp(), ptid_get_pid(), and PTRACE_TYPE_RET.
Referenced by parse_spufs_run(), spu_bfd_iovec_pread(), and spu_fetch_inferior_registers().
|
static |
Definition at line 88 of file spu-linux-nat.c.
References PT_READ_I, ptrace(), and PTRACE_TYPE_ARG3.
Referenced by fetch_ppc_memory(), and store_ppc_memory().
Definition at line 46 of file spu-linux-nat.c.
References _, inferior_ptid, gdb.printing::long, perror_with_name(), PT_READ_U, ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_TYPE_ARG3, PTRACE_TYPE_RET, and xsnprintf().
Referenced by parse_spufs_run().
Definition at line 205 of file spu-linux-nat.c.
References extract_unsigned_integer(), fetch_ppc_memory(), fetch_ppc_register(), gdbarch_byte_order(), INSTR_SC, NR_spu_run, gdbarch_tdep::pc, and target_gdbarch().
Referenced by spu_child_post_attach(), spu_child_post_startup_inferior(), spu_fetch_inferior_registers(), spu_store_inferior_registers(), and spu_xfer_partial().
|
static |
|
static |
Definition at line 279 of file spu-linux-nat.c.
Referenced by spu_bfd_open().
|
static |
Definition at line 294 of file spu-linux-nat.c.
References fetch_ppc_memory().
Referenced by spu_bfd_open().
|
static |
|
static |
Definition at line 322 of file spu-linux-nat.c.
References gdb_bfd_openr_iovec(), gdb_bfd_unref(), spu_bfd_iovec_close(), spu_bfd_iovec_open(), spu_bfd_iovec_pread(), spu_bfd_iovec_stat(), xfree(), and xmalloc().
Referenced by spu_symbol_file_add_from_memory().
|
static |
Definition at line 627 of file spu-linux-nat.c.
Referenced by _initialize_spu_nat().
|
static |
Definition at line 423 of file spu-linux-nat.c.
References __WALL, get_exec_file(), parse_spufs_run(), PT_SYSCALL, ptrace(), PTRACE_TYPE_ARG3, and spu_symbol_file_add_from_memory().
Referenced by _initialize_spu_nat().
|
static |
Definition at line 404 of file spu-linux-nat.c.
References __WALL, parse_spufs_run(), PT_SYSCALL, ptid_get_lwp(), ptid_get_pid(), ptrace(), and PTRACE_TYPE_ARG3.
Referenced by _initialize_spu_nat().
|
static |
Definition at line 446 of file spu-linux-nat.c.
References _, __WCLONE, clear_sigint_trap(), inferior_ptid, target_waitstatus::kind, pid, pid_to_ptid(), ptid_get_pid(), safe_strerror(), set_sigint_trap(), target_waitstatus::sig, status, store_waitstatus(), TARGET_WAITKIND_SIGNALLED, target_waitstatus::value, warning(), and WIFSTOPPED.
Referenced by _initialize_spu_nat().
|
static |
Definition at line 495 of file spu-linux-nat.c.
References gdbarch::byte_order, fetch_ppc_memory(), gdbarch_byte_order(), get_regcache_arch(), len, parse_spufs_run(), regcache_raw_supply(), SPU_ID_REGNUM, SPU_NUM_GPRS, SPU_PC_REGNUM, spu_proc_xfer_spu(), store_unsigned_integer(), TARGET_XFER_OK, and xsnprintf().
Referenced by _initialize_spu_nat().
|
static |
Definition at line 233 of file spu-linux-nat.c.
References inferior_ptid, pid, ptid_get_pid(), read(), SEEK_SET, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xsnprintf().
Referenced by spu_fetch_inferior_registers(), spu_store_inferior_registers(), spu_symbol_file_add_from_memory(), and spu_xfer_partial().
|
static |
Definition at line 542 of file spu-linux-nat.c.
References len, parse_spufs_run(), regcache_raw_collect(), SPU_NUM_GPRS, SPU_PC_REGNUM, spu_proc_xfer_spu(), store_ppc_memory(), and xsnprintf().
Referenced by _initialize_spu_nat().
|
static |
Definition at line 367 of file spu-linux-nat.c.
References do_cleanups(), len, make_cleanup_bfd_unref(), spu_bfd_open(), spu_proc_xfer_spu(), status, strtoulst(), symbol_file_add_from_bfd(), SYMFILE_MAINLINE, SYMFILE_VERBOSE, TARGET_XFER_OK, and xsnprintf().
Referenced by spu_child_post_attach().
|
static |
Definition at line 578 of file spu-linux-nat.c.
References parse_spufs_run(), spu_proc_xfer_spu(), strtoulst(), TARGET_OBJECT_MEMORY, TARGET_OBJECT_SPU, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xsnprintf().
Referenced by _initialize_spu_nat().
Definition at line 156 of file spu-linux-nat.c.
References fetch_ppc_memory_1(), inferior_ptid, len, ptid_get_lwp(), ptid_get_pid(), PTRACE_TYPE_RET, and store_ppc_memory_1().
Referenced by spu_store_inferior_registers().
|
static |
Definition at line 107 of file spu-linux-nat.c.
References PT_WRITE_D, ptrace(), and PTRACE_TYPE_ARG3.
Referenced by store_ppc_memory().
initialize_file_ftype _initialize_spu_nat |