GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/solib-spu.c File Reference
#include "defs.h"
#include "solib-spu.h"
#include "gdbcore.h"
#include <sys/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 "gdb_bfd.h"
#include "spu-tdep.h"

Go to the source code of this file.

Macros

#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 (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 const struct objfile_data * ocl_program_data_key
 
initialize_file_ftype _initialize_spu_solib
 

Macro Definition Documentation

#define MAX_SPE_FD   1024

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

Referenced by spu_current_sos().

#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 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 283 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 277 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 292 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 309 of file solib-spu.c.

References INT_MAX.

Referenced by spu_bfd_fopen().

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

Definition at line 237 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 ( struct objfile objfile,
const char *  name,
const domain_enum  domain 
)
static
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

initialize_file_ftype _initialize_spu_solib
const struct objfile_data* ocl_program_data_key
static

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

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