GDB (API)
Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/symfile.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "bfdlink.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "frame.h"
#include "target.h"
#include "value.h"
#include "symfile.h"
#include "objfiles.h"
#include "source.h"
#include "gdbcmd.h"
#include "breakpoint.h"
#include "language.h"
#include "complaints.h"
#include "demangle.h"
#include "inferior.h"
#include "regcache.h"
#include "filenames.h"
#include "gdb-stabs.h"
#include "gdb_obstack.h"
#include "completer.h"
#include "bcache.h"
#include "hashtab.h"
#include "readline/readline.h"
#include "gdb_assert.h"
#include "block.h"
#include "observer.h"
#include "exec.h"
#include "parser-defs.h"
#include "varobj.h"
#include "elf-bfd.h"
#include "solib.h"
#include "remote.h"
#include "stack.h"
#include "gdb_bfd.h"
#include "cli/cli-utils.h"
#include <sys/types.h>
#include <fcntl.h>
#include "gdb_string.h"
#include "gdb_stat.h"
#include <ctype.h>
#include <time.h>
#include <sys/time.h>
#include "psymtab.h"

Go to the source code of this file.

Defines

#define DEBUG_SUBDIRECTORY   ".debug"

Typedefs

typedef struct objfileobjfilep

Enumerations

enum  ovly_index { VMA, SIZE, LMA, MAPPED }

Functions

void _initialize_symfile (void)
 DEF_VEC_O (registered_sym_fns)
struct cleanup * increment_reading_symtab (void)
void find_lowest_section (bfd *abfd, asection *sect, void *obj)
struct section_addr_infoalloc_section_addr_info (size_t num_sections)
struct section_addr_infobuild_section_addr_info_from_section_table (const struct target_section *start, const struct target_section *end)
struct section_addr_infobuild_section_addr_info_from_objfile (const struct objfile *objfile)
void free_section_addr_info (struct section_addr_info *sap)
void relative_addr_info_to_section_offsets (struct section_offsets *section_offsets, int num_sections, const struct section_addr_info *addrs)
void addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
void default_symfile_offsets (struct objfile *objfile, const struct section_addr_info *addrs)
struct symfile_segment_datadefault_symfile_segments (bfd *abfd)
void new_symfile_objfile (struct objfile *objfile, int add_flags)
void symbol_file_add_separate (bfd *bfd, const char *name, int symfile_flags, struct objfile *objfile)
struct objfilesymbol_file_add_from_bfd (bfd *abfd, const char *name, int add_flags, struct section_addr_info *addrs, int flags, struct objfile *parent)
struct objfilesymbol_file_add (const char *name, int add_flags, struct section_addr_info *addrs, int flags)
void symbol_file_add_main (const char *args, int from_tty)
void symbol_file_clear (int from_tty)
char * find_separate_debug_file_by_debuglink (struct objfile *objfile)
void symbol_file_command (char *args, int from_tty)
void set_initial_language (void)
bfd * gdb_bfd_open_maybe_remote (const char *name)
bfd * symfile_bfd_open (const char *cname)
int get_section_index (struct objfile *objfile, char *section_name)
void add_symtab_fns (enum bfd_flavour flavour, const struct sym_fns *sf)
void generic_load (char *args, int from_tty)
void print_transfer_performance (struct ui_file *stream, unsigned long data_count, unsigned long write_count, const struct timeval *start_time, const struct timeval *end_time)
 DEF_VEC_P (objfilep)
void reread_symbols (void)
enum language deduce_language_from_filename (const char *filename)
struct symtaballocate_symtab (const char *filename, struct objfile *objfile)
void clear_symtab_users (int add_flags)
int section_is_overlay (struct obj_section *section)
int section_is_mapped (struct obj_section *osect)
CORE_ADDR pc_in_unmapped_range (CORE_ADDR pc, struct obj_section *section)
CORE_ADDR pc_in_mapped_range (CORE_ADDR pc, struct obj_section *section)
CORE_ADDR overlay_unmapped_address (CORE_ADDR pc, struct obj_section *section)
CORE_ADDR overlay_mapped_address (CORE_ADDR pc, struct obj_section *section)
CORE_ADDR symbol_overlayed_address (CORE_ADDR address, struct obj_section *section)
struct obj_sectionfind_pc_overlay (CORE_ADDR pc)
struct obj_sectionfind_pc_mapped_section (CORE_ADDR pc)
void simple_overlay_update (struct obj_section *osect)
bfd_byte * default_symfile_relocate (struct objfile *objfile, asection *sectp, bfd_byte *buf)
bfd_byte * symfile_relocate_debug_section (struct objfile *objfile, asection *sectp, bfd_byte *buf)
struct symfile_segment_dataget_symfile_segment_data (bfd *abfd)
void free_symfile_segment_data (struct symfile_segment_data *data)
int symfile_map_offsets_to_segments (bfd *abfd, const struct symfile_segment_data *data, struct section_offsets *offsets, int num_segment_bases, const CORE_ADDR *segment_bases)

Variables

int(* deprecated_ui_load_progress_hook )(const char *section, unsigned long num)
void(* deprecated_show_load_progress )(const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size)
void(* deprecated_pre_add_symbol_hook )(const char *)
void(* deprecated_post_add_symbol_hook )(void)
int readnow_symbol_files
char * debug_file_directory = NULL
enum overlay_debugging_state overlay_debugging = ovly_off
int overlay_cache_invalid = 0

Define Documentation

#define DEBUG_SUBDIRECTORY   ".debug"

Definition at line 1380 of file symfile.c.


Typedef Documentation

typedef struct objfile* objfilep

Definition at line 2345 of file symfile.c.


Enumeration Type Documentation

enum ovly_index
Enumerator:
VMA 
SIZE 
LMA 
MAPPED 

Definition at line 3386 of file symfile.c.


Function Documentation

void _initialize_symfile ( void  )
void add_symtab_fns ( enum bfd_flavour  flavour,
const struct sym_fns sf 
)

Definition at line 1764 of file symfile.c.

void addr_info_make_relative ( struct section_addr_info addrs,
bfd *  abfd 
)

Definition at line 536 of file symfile.c.

struct section_addr_info* alloc_section_addr_info ( size_t  num_sections) [read]

Definition at line 212 of file symfile.c.

struct symtab* allocate_symtab ( const char *  filename,
struct objfile objfile 
) [read]

Definition at line 2795 of file symfile.c.

Definition at line 285 of file symfile.c.

Definition at line 229 of file symfile.c.

void clear_symtab_users ( int  add_flags)

Definition at line 2842 of file symfile.c.

enum language deduce_language_from_filename ( const char *  filename)

Definition at line 2767 of file symfile.c.

DEF_VEC_O ( registered_sym_fns  )
void default_symfile_offsets ( struct objfile objfile,
const struct section_addr_info addrs 
)

Definition at line 685 of file symfile.c.

bfd_byte* default_symfile_relocate ( struct objfile objfile,
asection *  sectp,
bfd_byte *  buf 
)

Definition at line 3584 of file symfile.c.

struct symfile_segment_data* default_symfile_segments ( bfd *  abfd) [read]

Definition at line 775 of file symfile.c.

void find_lowest_section ( bfd *  abfd,
asection *  sect,
void *  obj 
)

Definition at line 191 of file symfile.c.

Definition at line 3158 of file symfile.c.

struct obj_section* find_pc_overlay ( CORE_ADDR  pc) [read]

Definition at line 3131 of file symfile.c.

char* find_separate_debug_file_by_debuglink ( struct objfile objfile)

Definition at line 1500 of file symfile.c.

void free_section_addr_info ( struct section_addr_info sap)

Definition at line 306 of file symfile.c.

Definition at line 3638 of file symfile.c.

bfd* gdb_bfd_open_maybe_remote ( const char *  name)

Definition at line 1658 of file symfile.c.

void generic_load ( char *  args,
int  from_tty 
)

Definition at line 2028 of file symfile.c.

int get_section_index ( struct objfile objfile,
char *  section_name 
)

Definition at line 1747 of file symfile.c.

struct symfile_segment_data* get_symfile_segment_data ( bfd *  abfd) [read]

Definition at line 3627 of file symfile.c.

struct cleanup* increment_reading_symtab ( void  ) [read]

Definition at line 174 of file symfile.c.

void new_symfile_objfile ( struct objfile objfile,
int  add_flags 
)

Definition at line 1038 of file symfile.c.

CORE_ADDR overlay_mapped_address ( CORE_ADDR  pc,
struct obj_section section 
)

Definition at line 3082 of file symfile.c.

CORE_ADDR overlay_unmapped_address ( CORE_ADDR  pc,
struct obj_section section 
)

Definition at line 3063 of file symfile.c.

CORE_ADDR pc_in_mapped_range ( CORE_ADDR  pc,
struct obj_section section 
)

Definition at line 3032 of file symfile.c.

CORE_ADDR pc_in_unmapped_range ( CORE_ADDR  pc,
struct obj_section section 
)

Definition at line 3009 of file symfile.c.

void print_transfer_performance ( struct ui_file *  stream,
unsigned long  data_count,
unsigned long  write_count,
const struct timeval *  start_time,
const struct timeval *  end_time 
)

Definition at line 2137 of file symfile.c.

void relative_addr_info_to_section_offsets ( struct section_offsets section_offsets,
int  num_sections,
const struct section_addr_info addrs 
)

Definition at line 453 of file symfile.c.

void reread_symbols ( void  )

Definition at line 2352 of file symfile.c.

int section_is_mapped ( struct obj_section osect)

Definition at line 2973 of file symfile.c.

int section_is_overlay ( struct obj_section section)

Definition at line 2933 of file symfile.c.

void set_initial_language ( void  )

Definition at line 1628 of file symfile.c.

void simple_overlay_update ( struct obj_section osect)

Definition at line 3515 of file symfile.c.

struct objfile* symbol_file_add ( const char *  name,
int  add_flags,
struct section_addr_info addrs,
int  flags 
) [read]

Definition at line 1223 of file symfile.c.

struct objfile* symbol_file_add_from_bfd ( bfd *  abfd,
const char *  name,
int  add_flags,
struct section_addr_info addrs,
int  flags,
struct objfile parent 
) [read]

Definition at line 1211 of file symfile.c.

void symbol_file_add_main ( const char *  args,
int  from_tty 
)

Definition at line 1244 of file symfile.c.

void symbol_file_add_separate ( bfd *  bfd,
const char *  name,
int  symfile_flags,
struct objfile objfile 
)

Definition at line 1184 of file symfile.c.

void symbol_file_clear ( int  from_tty)

Definition at line 1266 of file symfile.c.

void symbol_file_command ( char *  args,
int  from_tty 
)

Definition at line 1578 of file symfile.c.

CORE_ADDR symbol_overlayed_address ( CORE_ADDR  address,
struct obj_section section 
)

Definition at line 3101 of file symfile.c.

bfd* symfile_bfd_open ( const char *  cname)

Definition at line 1676 of file symfile.c.

int symfile_map_offsets_to_segments ( bfd *  abfd,
const struct symfile_segment_data data,
struct section_offsets offsets,
int  num_segment_bases,
const CORE_ADDR segment_bases 
)

Definition at line 3662 of file symfile.c.

bfd_byte* symfile_relocate_debug_section ( struct objfile objfile,
asection *  sectp,
bfd_byte *  buf 
)

Definition at line 3618 of file symfile.c.


Variable Documentation

char* debug_file_directory = NULL

Definition at line 1368 of file symfile.c.

Definition at line 79 of file symfile.c.

Definition at line 78 of file symfile.c.

void(* deprecated_show_load_progress)(const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size)

Definition at line 73 of file symfile.c.

int(* deprecated_ui_load_progress_hook)(const char *section, unsigned long num)

Definition at line 71 of file symfile.c.

Definition at line 2926 of file symfile.c.

Definition at line 2925 of file symfile.c.

Definition at line 84 of file symfile.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines