GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/spu-multiarch.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "gdb_string.h"
#include "gdb_assert.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.

Defines

#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 (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 LONGEST spu_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST 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

Define Documentation

#define INSTR_SC   0x44000002

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

Referenced by parse_spufs_run().

#define NR_spu_run   0x0116

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

Referenced by parse_spufs_run().

#define spu_standalone_p ( )
Value:
(symfile_objfile && symfile_objfile->obfd \
   && bfd_get_arch (symfile_objfile->obfd) == bfd_arch_spu)

Definition at line 46 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, read]
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 340 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 349 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 ( 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, read]

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

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

Referenced by init_spu_ops().

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

Variable Documentation

int spu_nr_solib [static]

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

Referenced by spu_multiarch_solib_loaded(), and spu_multiarch_solib_unloaded().

struct target_ops spu_ops [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines