GDB (xrefs)
Classes | Typedefs | Functions | Variables
/tmp/gdb-7.10/gdb/solib-aix.c File Reference
#include "defs.h"
#include "solib-aix.h"
#include "solist.h"
#include "inferior.h"
#include "gdb_bfd.h"
#include "gdbcore.h"
#include "objfiles.h"
#include "symtab.h"
#include "xcoffread.h"
#include "observer.h"
#include "gdbcmd.h"
#include "xml-support.h"

Go to the source code of this file.

Classes

struct  lm_info
 
struct  solib_aix_inferior_data
 

Typedefs

typedef struct lm_infolm_info_p
 

Functions

 DEF_VEC_P (lm_info_p)
 
static struct lm_infosolib_aix_new_lm_info (struct lm_info *info)
 
static void solib_aix_xfree_lm_info (struct lm_info *info)
 
static struct solib_aix_inferior_dataget_solib_aix_inferior_data (struct inferior *inf)
 
static void library_list_start_library (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
static void library_list_start_list (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
 
static void solib_aix_free_library_list (void *p)
 
static VEC (lm_info_p)
 
static CORE_ADDR solib_aix_bss_data_overlap (bfd *abfd)
 
static void solib_aix_relocate_section_addresses (struct so_list *so, struct target_section *sec)
 
static void solib_aix_free_so (struct so_list *so)
 
static void solib_aix_clear_solib (void)
 
static struct section_offsetssolib_aix_get_section_offsets (struct objfile *objfile, struct lm_info *info)
 
static void solib_aix_solib_create_inferior_hook (int from_tty)
 
static void solib_aix_special_symbol_handling (void)
 
static struct so_listsolib_aix_current_sos (void)
 
static int solib_aix_open_symbol_file_object (void *from_ttyp)
 
static int solib_aix_in_dynsym_resolve_code (CORE_ADDR pc)
 
static bfd * solib_aix_bfd_open (char *pathname)
 
static struct obj_sectiondata_obj_section_from_objfile (struct objfile *objfile)
 
CORE_ADDR solib_aix_get_toc_value (CORE_ADDR pc)
 
static void solib_aix_normal_stop_observer (struct bpstats *unused_1, int unused_2)
 
static void show_solib_aix_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void _initialize_solib_aix (void)
 

Variables

static int solib_aix_debug
 
static const struct inferior_data * solib_aix_inferior_data_handle
 
static const struct gdb_xml_attribute library_attributes []
 
static const struct gdb_xml_element library_list_children []
 
static const struct gdb_xml_attribute library_list_attributes []
 
static const struct gdb_xml_element library_list_elements []
 
struct target_so_ops solib_aix_so_ops
 
initialize_file_ftype _initialize_solib_aix
 

Typedef Documentation

typedef struct lm_info* lm_info_p

Definition at line 61 of file solib-aix.c.

Function Documentation

void _initialize_solib_aix ( void  )
static struct obj_section* data_obj_section_from_objfile ( struct objfile objfile)
static

Definition at line 744 of file solib-aix.c.

References ALL_OBJFILE_OSECTIONS, objfile::obfd, and obj_section::the_bfd_section.

Referenced by solib_aix_get_toc_value().

DEF_VEC_P ( lm_info_p  )
static struct solib_aix_inferior_data* get_solib_aix_inferior_data ( struct inferior inf)
static

Definition at line 111 of file solib-aix.c.

References solib_aix_inferior_data_handle.

Referenced by solib_aix_normal_stop_observer().

static void library_list_start_library ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static
static void library_list_start_list ( struct gdb_xml_parser parser,
const struct gdb_xml_element element,
void *  user_data,
VEC(gdb_xml_value_s)*  attributes 
)
static

Definition at line 192 of file solib-aix.c.

References _, gdb_xml_error(), gdb_xml_value::value, version, and xml_find_attribute().

static void show_solib_aix_debug ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 805 of file solib-aix.c.

References _, and fprintf_filtered().

Referenced by _initialize_solib_aix().

static bfd* solib_aix_bfd_open ( char *  pathname)
static
static CORE_ADDR solib_aix_bss_data_overlap ( bfd *  abfd)
static
static void solib_aix_clear_solib ( void  )
static

Definition at line 454 of file solib-aix.c.

Referenced by _initialize_solib_aix().

static struct so_list* solib_aix_current_sos ( void  )
static
static void solib_aix_free_library_list ( void *  p)
static
static void solib_aix_free_so ( struct so_list so)
static
static struct section_offsets* solib_aix_get_section_offsets ( struct objfile objfile,
struct lm_info info 
)
static
CORE_ADDR solib_aix_get_toc_value ( CORE_ADDR  pc)
static int solib_aix_in_dynsym_resolve_code ( CORE_ADDR  pc)
static

Definition at line 628 of file solib-aix.c.

Referenced by _initialize_solib_aix().

static struct lm_info* solib_aix_new_lm_info ( struct lm_info info)
static

Definition at line 67 of file solib-aix.c.

References lm_info::filename, lm_info::member_name, and xmalloc().

Referenced by solib_aix_current_sos().

static void solib_aix_normal_stop_observer ( struct bpstats unused_1,
int  unused_2 
)
static
static int solib_aix_open_symbol_file_object ( void *  from_ttyp)
static

Definition at line 620 of file solib-aix.c.

Referenced by _initialize_solib_aix().

static void solib_aix_relocate_section_addresses ( struct so_list so,
struct target_section sec 
)
static
static void solib_aix_solib_create_inferior_hook ( int  from_tty)
static
static void solib_aix_special_symbol_handling ( void  )
static

Definition at line 554 of file solib-aix.c.

Referenced by _initialize_solib_aix().

static void solib_aix_xfree_lm_info ( struct lm_info info)
static

Definition at line 82 of file solib-aix.c.

References lm_info::filename, lm_info::member_name, and xfree().

Referenced by solib_aix_free_library_list(), and solib_aix_free_so().

static VEC ( lm_info_p  )
static

Variable Documentation

initialize_file_ftype _initialize_solib_aix
const struct gdb_xml_attribute library_attributes[]
static
Initial value:
=
{
{ "name", GDB_XML_AF_NONE, NULL, NULL },
{ "member", GDB_XML_AF_OPTIONAL, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}
gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest

Definition at line 225 of file solib-aix.c.

const struct gdb_xml_attribute library_list_attributes[]
static
Initial value:
=
{
{ "version", GDB_XML_AF_NONE, NULL, NULL },
{ NULL, GDB_XML_AF_NONE, NULL, NULL }
}

Definition at line 244 of file solib-aix.c.

const struct gdb_xml_element library_list_children[]
static
Initial value:
=
{
{ "library", library_attributes, NULL,
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static void library_list_start_library(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: solib-aix.c:158
static const struct gdb_xml_attribute library_attributes[]
Definition: solib-aix.c:225

Definition at line 236 of file solib-aix.c.

const struct gdb_xml_element library_list_elements[]
static
Initial value:
=
{
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
}
static void library_list_start_list(struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s)*attributes)
Definition: solib-aix.c:192
static const struct gdb_xml_attribute library_list_attributes[]
Definition: solib-aix.c:244
static const struct gdb_xml_element library_list_children[]
Definition: solib-aix.c:236

Definition at line 250 of file solib-aix.c.

int solib_aix_debug
static
const struct inferior_data* solib_aix_inferior_data_handle
static

Definition at line 105 of file solib-aix.c.

Referenced by _initialize_solib_aix(), and get_solib_aix_inferior_data().

struct target_so_ops solib_aix_so_ops

Definition at line 812 of file solib-aix.c.

Referenced by _initialize_solib_aix(), and rs6000_aix_init_osabi().