GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/spu-multiarch.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "arch-utils.h"
#include "observer.h"
#include "inferior.h"
#include "regcache.h"
#include "symfile.h"
#include "objfiles.h"
#include "solib.h"
#include "solist.h"
#include "ppc-tdep.h"
#include "ppc-linux-tdep.h"
#include "spu-tdep.h"

Go to the source code of this file.

Macros

#define spu_standalone_p()
 
#define INSTR_SC   0x44000002
 
#define NR_spu_run   0x0116
 

Functions

static int parse_spufs_run (ptid_t ptid, int *fd, CORE_ADDR *addr)
 
static struct gdbarchspu_gdbarch (int spufs_fd)
 
static struct gdbarchspu_thread_architecture (struct target_ops *ops, ptid_t ptid)
 
static int spu_region_ok_for_hw_watchpoint (struct target_ops *self, CORE_ADDR addr, int len)
 
static void spu_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static void spu_store_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static enum target_xfer_status spu_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
static int spu_search_memory (struct target_ops *ops, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
 
static void spu_multiarch_activate (void)
 
static void spu_multiarch_deactivate (void)
 
static void spu_multiarch_inferior_created (struct target_ops *ops, int from_tty)
 
static void spu_multiarch_solib_loaded (struct so_list *so)
 
static void spu_multiarch_solib_unloaded (struct so_list *so)
 
static void spu_mourn_inferior (struct target_ops *ops)
 
static void init_spu_ops (void)
 
void _initialize_spu_multiarch (void)
 

Variables

static struct target_ops spu_ops
 
static int spu_nr_solib
 
initialize_file_ftype _initialize_spu_multiarch
 

Macro Definition Documentation

#define INSTR_SC   0x44000002

Definition at line 49 of file spu-multiarch.c.

Referenced by parse_spufs_run().

#define NR_spu_run   0x0116

Definition at line 50 of file spu-multiarch.c.

Referenced by parse_spufs_run().

#define spu_standalone_p ( )
Value:
&& bfd_get_arch (symfile_objfile->obfd) == bfd_arch_spu)
#define symfile_objfile
Definition: progspace.h:216

Definition at line 44 of file spu-multiarch.c.

Referenced by spu_multiarch_inferior_created(), spu_multiarch_solib_loaded(), and spu_multiarch_solib_unloaded().

Function Documentation

void _initialize_spu_multiarch ( void  )
static void init_spu_ops ( void  )
static
static int parse_spufs_run ( ptid_t  ptid,
int fd,
CORE_ADDR addr 
)
static
static void spu_fetch_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static struct gdbarch* spu_gdbarch ( int  spufs_fd)
static
static void spu_mourn_inferior ( struct target_ops ops)
static
static void spu_multiarch_activate ( void  )
static
static void spu_multiarch_deactivate ( void  )
static

Definition at line 322 of file spu-multiarch.c.

References registers_changed(), spu_ops, and unpush_target().

Referenced by spu_mourn_inferior(), and spu_multiarch_solib_unloaded().

static void spu_multiarch_inferior_created ( struct target_ops ops,
int  from_tty 
)
static

Definition at line 331 of file spu-multiarch.c.

References spu_multiarch_activate(), and spu_standalone_p.

Referenced by _initialize_spu_multiarch().

static void spu_multiarch_solib_loaded ( struct so_list so)
static
static void spu_multiarch_solib_unloaded ( struct so_list so)
static
static int spu_region_ok_for_hw_watchpoint ( struct target_ops self,
CORE_ADDR  addr,
int  len 
)
static
static int spu_search_memory ( struct target_ops ops,
CORE_ADDR  start_addr,
ULONGEST  search_space_len,
const gdb_byte pattern,
ULONGEST  pattern_len,
CORE_ADDR found_addrp 
)
static
static void spu_store_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static struct gdbarch* spu_thread_architecture ( struct target_ops ops,
ptid_t  ptid 
)
static

Definition at line 106 of file spu-multiarch.c.

References parse_spufs_run(), spu_gdbarch(), and target_gdbarch().

Referenced by init_spu_ops().

static enum target_xfer_status spu_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
static

Variable Documentation

initialize_file_ftype _initialize_spu_multiarch
int spu_nr_solib
static

Definition at line 41 of file spu-multiarch.c.

Referenced by spu_multiarch_solib_loaded(), and spu_multiarch_solib_unloaded().

struct target_ops spu_ops
static