GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/solib-spu.c File Reference
#include "defs.h"
#include "solib-spu.h"
#include "gdbcore.h"
#include "gdb_string.h"
#include "gdb_assert.h"
#include "gdb_stat.h"
#include "arch-utils.h"
#include "bfd.h"
#include "symtab.h"
#include "solib.h"
#include "solib-svr4.h"
#include "solist.h"
#include "inferior.h"
#include "objfiles.h"
#include "observer.h"
#include "breakpoint.h"
#include "gdbthread.h"
#include "exceptions.h"
#include "gdb_bfd.h"
#include "spu-tdep.h"

Go to the source code of this file.

Defines

#define MAX_SPE_FD   1024
#define spu_standalone_p()

Functions

static void spu_relocate_main_executable (int spufs_fd)
static void spu_skip_standalone_loader (void)
static void append_ocl_sos (struct so_list **link_ptr)
static struct so_listspu_current_sos (void)
static void spu_free_so (struct so_list *so)
static void spu_relocate_section_addresses (struct so_list *so, struct target_section *sec)
static void * spu_bfd_iovec_open (bfd *nbfd, void *open_closure)
static int spu_bfd_iovec_close (bfd *nbfd, void *stream)
static file_ptr spu_bfd_iovec_pread (bfd *abfd, void *stream, void *buf, file_ptr nbytes, file_ptr offset)
static int spu_bfd_iovec_stat (bfd *abfd, void *stream, struct stat *sb)
static bfd * spu_bfd_fopen (char *name, CORE_ADDR addr)
static bfd * spu_bfd_open (char *pathname)
static struct symbolspu_lookup_lib_symbol (const struct objfile *objfile, const char *name, const domain_enum domain)
static int spu_enable_break (struct objfile *objfile)
static void ocl_enable_break (struct objfile *objfile)
static void spu_solib_create_inferior_hook (int from_tty)
void set_spu_solib_ops (struct gdbarch *gdbarch)
static void spu_solib_loaded (struct so_list *so)
void _initialize_spu_solib (void)

Variables

static struct objfile_data * ocl_program_data_key
initialize_file_ftype _initialize_spu_solib

Define Documentation

#define MAX_SPE_FD   1024

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

Referenced by spu_current_sos().

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

Definition at line 47 of file solib-spu.c.

Referenced by spu_current_sos(), and spu_solib_create_inferior_hook().


Function Documentation

void _initialize_spu_solib ( void  )
static void append_ocl_sos ( struct so_list **  link_ptr) [static]
static void ocl_enable_break ( struct objfile objfile) [static]
void set_spu_solib_ops ( struct gdbarch gdbarch)
static bfd* spu_bfd_fopen ( char *  name,
CORE_ADDR  addr 
) [static]
static int spu_bfd_iovec_close ( bfd *  nbfd,
void *  stream 
) [static]

Definition at line 286 of file solib-spu.c.

References xfree().

Referenced by spu_bfd_fopen().

static void* spu_bfd_iovec_open ( bfd *  nbfd,
void *  open_closure 
) [static]

Definition at line 280 of file solib-spu.c.

Referenced by spu_bfd_fopen().

static file_ptr spu_bfd_iovec_pread ( bfd *  abfd,
void *  stream,
void *  buf,
file_ptr  nbytes,
file_ptr  offset 
) [static]

Definition at line 295 of file solib-spu.c.

References target_read_memory().

Referenced by spu_bfd_fopen().

static int spu_bfd_iovec_stat ( bfd *  abfd,
void *  stream,
struct stat *  sb 
) [static]

Definition at line 312 of file solib-spu.c.

Referenced by spu_bfd_fopen().

static bfd* spu_bfd_open ( char *  pathname) [static]
static struct so_list* spu_current_sos ( void  ) [static, read]
static int spu_enable_break ( struct objfile objfile) [static]
static void spu_free_so ( struct so_list so) [static]

Definition at line 240 of file solib-spu.c.

References target_so_ops::free_so, so_list::so_original_name, and svr4_so_ops.

Referenced by set_spu_solib_ops().

static struct symbol* spu_lookup_lib_symbol ( const struct objfile objfile,
const char *  name,
const domain_enum  domain 
) [static, read]
static void spu_relocate_main_executable ( int  spufs_fd) [static]
static void spu_relocate_section_addresses ( struct so_list so,
struct target_section sec 
) [static]
static void spu_skip_standalone_loader ( void  ) [static]
static void spu_solib_create_inferior_hook ( int  from_tty) [static]
static void spu_solib_loaded ( struct so_list so) [static]

Variable Documentation

struct objfile_data* ocl_program_data_key [static]

Definition at line 100 of file solib-spu.c.

Referenced by _initialize_spu_solib(), append_ocl_sos(), and ocl_enable_break().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines