GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/dbxread.c File Reference
#include "defs.h"
#include "gdb_string.h"
#include "gdb_obstack.h"
#include "gdb_stat.h"
#include "symtab.h"
#include "breakpoint.h"
#include "target.h"
#include "gdbcore.h"
#include "libaout.h"
#include "filenames.h"
#include "objfiles.h"
#include "buildsym.h"
#include "stabsread.h"
#include "gdb-stabs.h"
#include "demangle.h"
#include "complaints.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "psympriv.h"
#include "block.h"
#include "gdb_assert.h"
#include "aout/aout64.h"
#include "aout/stab_gnu.h"

Go to the source code of this file.

Defines

#define LDSYMOFF(p)   (((struct symloc *)((p)->read_symtab_private))->ldsymoff)
#define LDSYMLEN(p)   (((struct symloc *)((p)->read_symtab_private))->ldsymlen)
#define SYMLOC(p)   ((struct symloc *)((p)->read_symtab_private))
#define SYMBOL_SIZE(p)   (SYMLOC(p)->symbol_size)
#define SYMBOL_OFFSET(p)   (SYMLOC(p)->symbol_offset)
#define STRING_OFFSET(p)   (SYMLOC(p)->string_offset)
#define FILE_STRING_OFFSET(p)   (SYMLOC(p)->file_string_offset)
#define DBX_STRINGTAB_SIZE_SIZE   sizeof(long) /* FIXME */
#define STRING_TABLE_OFFSET   (sym_bfd->origin + obj_str_filepos (sym_bfd))
#define SYMBOL_TABLE_OFFSET   (sym_bfd->origin + obj_sym_filepos (sym_bfd))
#define INTERNALIZE_SYMBOL(intern, extern, abfd)
#define COFF_STABS_SYMBOL_SIZE   12 /* XXX FIXME XXX */
#define ELF_STABS_SYMBOL_SIZE   12 /* XXX FIXME XXX */

Functions

void _initialize_dbxread (void)
void free_header_files (void)
void init_header_files (void)
struct partial_symtabend_psymtab (struct objfile *objfile, struct partial_symtab *pst, const char **include_list, int num_includes, int capping_symbol_offset, CORE_ADDR capping_text, struct partial_symtab **dependency_list, int number_dependencies, int textlow_not_set)
void process_one_symbol (int type, int desc, CORE_ADDR valu, char *name, const struct section_offsets *section_offsets, struct objfile *objfile)
void coffstab_build_psymtabs (struct objfile *objfile, CORE_ADDR textaddr, unsigned int textsize, struct stab_section_list *stabsects, file_ptr stabstroffset, unsigned int stabstrsize)
void elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, file_ptr stabstroffset, unsigned int stabstrsize)
void stabsect_build_psymtabs (struct objfile *objfile, char *stab_name, char *stabstr_name, char *text_name)

Variables

struct objfile_data * dbx_objfile_data_key

Define Documentation

#define COFF_STABS_SYMBOL_SIZE   12 /* XXX FIXME XXX */
#define DBX_STRINGTAB_SIZE_SIZE   sizeof(long) /* FIXME */

Definition at line 613 of file dbxread.c.

#define ELF_STABS_SYMBOL_SIZE   12 /* XXX FIXME XXX */
#define FILE_STRING_OFFSET (   p)    (SYMLOC(p)->file_string_offset)

Definition at line 108 of file dbxread.c.

#define INTERNALIZE_SYMBOL (   intern,
  extern,
  abfd 
)
Value:
{                                                                       \
    (intern).n_strx = bfd_h_get_32 (abfd, (extern)->e_strx);            \
    (intern).n_type = bfd_h_get_8 (abfd, (extern)->e_type);             \
    (intern).n_other = 0;                                               \
    (intern).n_desc = bfd_h_get_16 (abfd, (extern)->e_desc);            \
    if (bfd_get_sign_extend_vma (abfd))                                 \
      (intern).n_value = bfd_h_get_signed_32 (abfd, (extern)->e_value); \
    else                                                                \
      (intern).n_value = bfd_h_get_32 (abfd, (extern)->e_value);        \
  }

Definition at line 855 of file dbxread.c.

#define LDSYMLEN (   p)    (((struct symloc *)((p)->read_symtab_private))->ldsymlen)

Definition at line 103 of file dbxread.c.

#define LDSYMOFF (   p)    (((struct symloc *)((p)->read_symtab_private))->ldsymoff)

Definition at line 102 of file dbxread.c.

#define STRING_OFFSET (   p)    (SYMLOC(p)->string_offset)

Definition at line 107 of file dbxread.c.

#define STRING_TABLE_OFFSET   (sym_bfd->origin + obj_str_filepos (sym_bfd))
#define SYMBOL_OFFSET (   p)    (SYMLOC(p)->symbol_offset)

Definition at line 106 of file dbxread.c.

#define SYMBOL_SIZE (   p)    (SYMLOC(p)->symbol_size)

Definition at line 105 of file dbxread.c.

#define SYMBOL_TABLE_OFFSET   (sym_bfd->origin + obj_sym_filepos (sym_bfd))
#define SYMLOC (   p)    ((struct symloc *)((p)->read_symtab_private))

Definition at line 104 of file dbxread.c.


Function Documentation

void _initialize_dbxread ( void  )
void coffstab_build_psymtabs ( struct objfile objfile,
CORE_ADDR  textaddr,
unsigned int  textsize,
struct stab_section_list stabsects,
file_ptr  stabstroffset,
unsigned int  stabstrsize 
)

Definition at line 3323 of file dbxread.c.

void elfstab_build_psymtabs ( struct objfile objfile,
asection *  stabsect,
file_ptr  stabstroffset,
unsigned int  stabstrsize 
)

Definition at line 3414 of file dbxread.c.

struct partial_symtab* end_psymtab ( struct objfile objfile,
struct partial_symtab pst,
const char **  include_list,
int  num_includes,
int  capping_symbol_offset,
CORE_ADDR  capping_text,
struct partial_symtab **  dependency_list,
int  number_dependencies,
int  textlow_not_set 
) [read]

Definition at line 2230 of file dbxread.c.

void free_header_files ( void  )

Definition at line 311 of file dbxread.c.

void init_header_files ( void  )

Definition at line 324 of file dbxread.c.

void process_one_symbol ( int  type,
int  desc,
CORE_ADDR  valu,
char *  name,
const struct section_offsets section_offsets,
struct objfile objfile 
)

Definition at line 2720 of file dbxread.c.

void stabsect_build_psymtabs ( struct objfile objfile,
char *  stab_name,
char *  stabstr_name,
char *  text_name 
)

Definition at line 3495 of file dbxread.c.


Variable Documentation

struct objfile_data* dbx_objfile_data_key

Definition at line 70 of file dbxread.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines