GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/mdebugread.c File Reference
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "filenames.h"
#include "objfiles.h"
#include "gdb_obstack.h"
#include "buildsym.h"
#include "stabsread.h"
#include "complaints.h"
#include "demangle.h"
#include "gdb-demangle.h"
#include "block.h"
#include "dictionary.h"
#include "mdebugread.h"
#include <sys/stat.h>
#include "psympriv.h"
#include "source.h"
#include "bfd.h"
#include "coff/ecoff.h"
#include "libaout.h"
#include "aout/aout64.h"
#include "aout/stab_gnu.h"
#include "expression.h"

Go to the source code of this file.

Classes

struct  symloc
 
struct  pst_map
 
struct  parse_stack
 
struct  mdebug_pending
 

Macros

#define ECOFF_IN_ELF(bfd)
 
#define PST_PRIVATE(p)   ((struct symloc *)(p)->read_symtab_private)
 
#define FDR_IDX(p)   (PST_PRIVATE(p)->fdr_idx)
 
#define CUR_BFD(p)   (PST_PRIVATE(p)->cur_bfd)
 
#define DEBUG_SWAP(p)   (PST_PRIVATE(p)->debug_swap)
 
#define DEBUG_INFO(p)   (PST_PRIVATE(p)->debug_info)
 
#define PENDING_LIST(p)   (PST_PRIVATE(p)->pending_list)
 
#define SC_IS_TEXT(sc)
 
#define SC_IS_DATA(sc)
 
#define SC_IS_COMMON(sc)   ((sc) == scCommon || (sc) == scSCommon)
 
#define SC_IS_BSS(sc)   ((sc) == scBss)
 
#define SC_IS_SBSS(sc)   ((sc) == scSBss)
 
#define SC_IS_UNDEF(sc)   ((sc) == scUndefined || (sc) == scSUndefined)
 
#define MIN_GLEVEL   GLEVEL_0
 
#define compare_glevel(a, b)
 
#define PARSE_TQ(tq)
 

Enumerations

enum  block_type { FUNCTION_BLOCK, NON_FUNCTION_BLOCK }
 

Functions

static void index_complaint (const char *arg1)
 
static void unknown_ext_complaint (const char *arg1)
 
static void basic_type_complaint (int arg1, const char *arg2)
 
static void bad_tag_guess_complaint (const char *arg1)
 
static void bad_rfd_entry_complaint (const char *arg1, int arg2, int arg3)
 
static void unexpected_type_code_complaint (const char *arg1)
 
static int upgrade_type (int, struct type **, int, union aux_ext *, int, const char *)
 
static void parse_partial_symbols (minimal_symbol_reader &, struct objfile *)
 
static int has_opaque_xref (FDR *, SYMR *)
 
static int cross_ref (int, union aux_ext *, struct type **, enum type_code, const char **, int, const char *)
 
static struct symbolnew_symbol (const char *)
 
static struct typenew_type (char *)
 
static struct blocknew_block (enum block_type, enum language)
 
static struct compunit_symtabnew_symtab (const char *, int, struct objfile *)
 
static struct linetablenew_linetable (int)
 
static struct blockvectornew_bvect (int)
 
static struct typeparse_type (int, union aux_ext *, unsigned int, int *, int, const char *)
 
static struct symbolmylookup_symbol (const char *, const struct block *, domain_enum, enum address_class)
 
static void sort_blocks (struct symtab *)
 
static struct partial_symtabnew_psymtab (const char *, struct objfile *)
 
static void psymtab_to_symtab_1 (struct objfile *objfile, struct partial_symtab *, const char *)
 
static void add_block (struct block *, struct symtab *)
 
static void add_symbol (struct symbol *, struct symtab *, struct block *)
 
static int add_line (struct linetable *, int, CORE_ADDR, int)
 
static struct linetableshrink_linetable (struct linetable *)
 
static void handle_psymbol_enumerators (struct objfile *, FDR *, int, CORE_ADDR)
 
static const char * mdebug_next_symbol_text (struct objfile *)
 
static void mdebug_read_symtab (struct partial_symtab *self, struct objfile *objfile)
 
static FDR * get_rfd (int cf, int rf)
 
static const char * fdr_name (FDR *f)
 
void mdebug_build_psymtabs (minimal_symbol_reader &reader, struct objfile *objfile, const struct ecoff_debug_swap *swap, struct ecoff_debug_info *info)
 
static void push_parse_stack (void)
 
static void pop_parse_stack (void)
 
static struct mdebug_pendingis_pending_symbol (FDR *fh, char *sh)
 
static void add_pending (FDR *fh, char *sh, struct type *t)
 
static void reg_value_complaint (int regnum, int num_regs, const char *sym)
 
static int mdebug_reg_to_regnum (struct symbol *sym, struct gdbarch *gdbarch)
 
static void add_data_symbol (SYMR *sh, union aux_ext *ax, int bigend, struct symbol *s, int aclass_index, struct block *b, struct objfile *objfile, const char *name)
 
static int parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, struct section_offsets *section_offsets, struct objfile *objfile)
 
static struct typebasic_type (int bt, struct objfile *objfile)
 
static void parse_procedure (PDR *pr, struct compunit_symtab *search_symtab, struct partial_symtab *pst)
 
static void parse_external (EXTR *, int, struct section_offsets *, struct objfile *)
 
static void parse_lines (FDR *, PDR *, struct linetable *, int, struct partial_symtab *, CORE_ADDR)
 
static void function_outside_compilation_unit_complaint (const char *arg1)
 
static void record_minimal_symbol (minimal_symbol_reader &reader, const char *name, const CORE_ADDR address, enum minimal_symbol_type ms_type, int storage_class, struct objfile *objfile)
 
static int compare_blocks (const void *arg1, const void *arg2)
 
void elfmdebug_build_psymtabs (struct objfile *objfile, const struct ecoff_debug_swap *swap, asection *sec)
 
void _initialize_mdebugread (void)
 

Variables

static struct objfilemdebugread_objfile
 
static enum language psymtab_language = language_unknown
 
static bfd * cur_bfd
 
static const struct ecoff_debug_swap * debug_swap
 
static struct ecoff_debug_info * debug_info
 
static FDR * cur_fdr
 
static int cur_fd
 
static int cur_sdx
 
static int max_gdbinfo
 
static int max_glevel
 
static int n_undef_symbols
 
static int n_undef_labels
 
static int n_undef_vars
 
static int n_undef_procs
 
static char stabs_symbol [] = STABS_SYMBOL
 
static int found_ecoff_debugging_info
 
static struct parse_stacktop_stack
 
static struct mdebug_pending ** pending_list
 
static const struct symbol_register_ops mdebug_register_funcs
 
static int mdebug_register_index
 
static int mdebug_regparm_index
 
static const struct objfile_data * basic_type_data
 

Macro Definition Documentation

◆ compare_glevel

#define compare_glevel (   a,
 
)
Value:
(((a) == GLEVEL_3) ? ((b) < GLEVEL_3) : \
((b) == GLEVEL_3) ? -1 : (int)((b) - (a)))

Definition at line 169 of file mdebugread.c.

Referenced by mdebug_build_psymtabs().

◆ CUR_BFD

#define CUR_BFD (   p)    (PST_PRIVATE(p)->cur_bfd)

Definition at line 105 of file mdebugread.c.

Referenced by new_psymtab(), parse_partial_symbols(), and psymtab_to_symtab_1().

◆ DEBUG_INFO

#define DEBUG_INFO (   p)    (PST_PRIVATE(p)->debug_info)

Definition at line 107 of file mdebugread.c.

Referenced by new_psymtab(), parse_partial_symbols(), and psymtab_to_symtab_1().

◆ DEBUG_SWAP

#define DEBUG_SWAP (   p)    (PST_PRIVATE(p)->debug_swap)

Definition at line 106 of file mdebugread.c.

Referenced by new_psymtab(), parse_partial_symbols(), and psymtab_to_symtab_1().

◆ ECOFF_IN_ELF

#define ECOFF_IN_ELF (   bfd)
Value:
(bfd_get_flavour (bfd) == bfd_target_elf_flavour \
&& bfd_get_section_by_name (bfd, ".mdebug") != NULL)

Definition at line 75 of file mdebugread.c.

Referenced by parse_partial_symbols().

◆ FDR_IDX

#define FDR_IDX (   p)    (PST_PRIVATE(p)->fdr_idx)

Definition at line 104 of file mdebugread.c.

Referenced by parse_partial_symbols(), and psymtab_to_symtab_1().

◆ MIN_GLEVEL

#define MIN_GLEVEL   GLEVEL_0

Definition at line 168 of file mdebugread.c.

Referenced by parse_partial_symbols().

◆ PARSE_TQ

#define PARSE_TQ (   tq)
Value:
if (t->tq != tqNil) \
ax += upgrade_type(fd, &tp, t->tq, ax, bigend, sym_name); \
else \
break;
static int upgrade_type(int, struct type **, int, union aux_ext *, int, const char *)
Definition: mdebugread.c:1818

Referenced by parse_type().

◆ PENDING_LIST

#define PENDING_LIST (   p)    (PST_PRIVATE(p)->pending_list)

Definition at line 108 of file mdebugread.c.

Referenced by new_psymtab(), parse_partial_symbols(), and psymtab_to_symtab_1().

◆ PST_PRIVATE

#define PST_PRIVATE (   p)    ((struct symloc *)(p)->read_symtab_private)

Definition at line 103 of file mdebugread.c.

Referenced by parse_partial_symbols(), and psymtab_to_symtab_1().

◆ SC_IS_BSS

#define SC_IS_BSS (   sc)    ((sc) == scBss)

Definition at line 120 of file mdebugread.c.

Referenced by parse_partial_symbols().

◆ SC_IS_COMMON

#define SC_IS_COMMON (   sc)    ((sc) == scCommon || (sc) == scSCommon)

Definition at line 119 of file mdebugread.c.

Referenced by cross_ref(), parse_external(), parse_partial_symbols(), and parse_symbol().

◆ SC_IS_DATA

#define SC_IS_DATA (   sc)
Value:
((sc) == scData \
|| (sc) == scSData \
|| (sc) == scRData \
|| (sc) == scPData \
|| (sc) == scXData)
int sc
Definition: gnu-nat.h:51

Definition at line 114 of file mdebugread.c.

Referenced by parse_partial_symbols().

◆ SC_IS_SBSS

#define SC_IS_SBSS (   sc)    ((sc) == scSBss)

Definition at line 121 of file mdebugread.c.

Referenced by parse_partial_symbols().

◆ SC_IS_TEXT

#define SC_IS_TEXT (   sc)
Value:
((sc) == scText \
|| (sc) == scRConst \
|| (sc) == scInit \
|| (sc) == scFini)
int sc
Definition: gnu-nat.h:51

Definition at line 110 of file mdebugread.c.

Referenced by parse_partial_symbols().

◆ SC_IS_UNDEF

#define SC_IS_UNDEF (   sc)    ((sc) == scUndefined || (sc) == scSUndefined)

Definition at line 122 of file mdebugread.c.

Referenced by add_data_symbol(), parse_external(), parse_partial_symbols(), and parse_symbol().

Enumeration Type Documentation

◆ block_type

enum block_type
Enumerator
FUNCTION_BLOCK 
NON_FUNCTION_BLOCK 

Definition at line 235 of file mdebugread.c.

Function Documentation

◆ _initialize_mdebugread()

void _initialize_mdebugread ( void  )

◆ add_block()

static void add_block ( struct block b,
struct symtab s 
)
static

◆ add_data_symbol()

static void add_data_symbol ( SYMR *  sh,
union aux_ext *  ax,
int  bigend,
struct symbol s,
int  aclass_index,
struct block b,
struct objfile objfile,
const char *  name 
)
static

◆ add_line()

static int add_line ( struct linetable lt,
int  lineno,
CORE_ADDR  adr,
int  last 
)
static

Definition at line 4625 of file mdebugread.c.

References linetable::item, linetable_entry::line, linetable::nitems, and linetable_entry::pc.

Referenced by parse_lines().

◆ add_pending()

static void add_pending ( FDR *  fh,
char *  sh,
struct type t 
)
static

◆ add_symbol()

static void add_symbol ( struct symbol s,
struct symtab symtab,
struct block b 
)
static

◆ bad_rfd_entry_complaint()

static void bad_rfd_entry_complaint ( const char *  arg1,
int  arg2,
int  arg3 
)
static

Definition at line 152 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by cross_ref().

◆ bad_tag_guess_complaint()

static void bad_tag_guess_complaint ( const char *  arg1)
static

Definition at line 145 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by parse_type().

◆ basic_type()

static struct type* basic_type ( int  bt,
struct objfile objfile 
)
static

◆ basic_type_complaint()

static void basic_type_complaint ( int  arg1,
const char *  arg2 
)
static

Definition at line 138 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by parse_type().

◆ compare_blocks()

static int compare_blocks ( const void *  arg1,
const void *  arg2 
)
static

Definition at line 4647 of file mdebugread.c.

References BLOCK_END, and BLOCK_START.

Referenced by sort_blocks().

◆ cross_ref()

static int cross_ref ( int  fd,
union aux_ext *  ax,
struct type **  tpp,
enum type_code type_code  ,
const char **  pname,
int  bigend,
const char *  sym_name 
)
static

◆ elfmdebug_build_psymtabs()

void elfmdebug_build_psymtabs ( struct objfile objfile,
const struct ecoff_debug_swap *  swap,
asection *  sec 
)

◆ fdr_name()

static const char* fdr_name ( FDR *  f)
static

Definition at line 324 of file mdebugread.c.

References debug_info.

Referenced by parse_external(), parse_lines(), and parse_partial_symbols().

◆ function_outside_compilation_unit_complaint()

static void function_outside_compilation_unit_complaint ( const char *  arg1)
static

Definition at line 2250 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by parse_partial_symbols().

◆ get_rfd()

static FDR* get_rfd ( int  cf,
int  rf 
)
static

Definition at line 302 of file mdebugread.c.

References cur_bfd, debug_info, and debug_swap.

Referenced by cross_ref(), parse_type(), and upgrade_type().

◆ handle_psymbol_enumerators()

static void handle_psymbol_enumerators ( struct objfile objfile,
FDR *  fh,
int  stype,
CORE_ADDR  svalue 
)
static

◆ has_opaque_xref()

static int has_opaque_xref ( FDR *  fh,
SYMR *  sh 
)
static

Definition at line 4326 of file mdebugread.c.

References debug_info, and debug_swap.

Referenced by parse_partial_symbols(), and parse_symbol().

◆ index_complaint()

static void index_complaint ( const char *  arg1)
static

Definition at line 126 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by parse_partial_symbols(), and parse_type().

◆ is_pending_symbol()

static struct mdebug_pending* is_pending_symbol ( FDR *  fh,
char *  sh 
)
static

Definition at line 488 of file mdebugread.c.

References debug_info, mdebug_pending::next, pending_list, and mdebug_pending::s.

Referenced by add_pending(), cross_ref(), and parse_symbol().

◆ mdebug_build_psymtabs()

void mdebug_build_psymtabs ( minimal_symbol_reader reader,
struct objfile objfile,
const struct ecoff_debug_swap *  swap,
struct ecoff_debug_info *  info 
)

◆ mdebug_next_symbol_text()

static const char * mdebug_next_symbol_text ( struct objfile objfile)
static

Definition at line 3888 of file mdebugread.c.

References cur_bfd, cur_fdr, cur_sdx, debug_info, and debug_swap.

Referenced by mdebug_read_symtab(), and parse_partial_symbols().

◆ mdebug_read_symtab()

static void mdebug_read_symtab ( struct partial_symtab self,
struct objfile objfile 
)
static

◆ mdebug_reg_to_regnum()

static int mdebug_reg_to_regnum ( struct symbol sym,
struct gdbarch gdbarch 
)
static

◆ mylookup_symbol()

static struct symbol * mylookup_symbol ( const char *  name,
const struct block block,
domain_enum  domain,
enum address_class  theclass 
)
static

◆ new_block()

static struct block* new_block ( enum block_type  type,
enum language language   
)
static

◆ new_bvect()

static struct blockvector * new_bvect ( int  nblocks)
static

Definition at line 4802 of file mdebugread.c.

References BLOCKVECTOR_NBLOCKS, blockvector::nblocks, size, and xzalloc().

Referenced by new_symtab().

◆ new_linetable()

static struct linetable * new_linetable ( int  size)
static

Definition at line 4772 of file mdebugread.c.

References linetable::item, linetable::nitems, size, and xmalloc().

Referenced by new_symtab().

◆ new_psymtab()

static struct partial_symtab * new_psymtab ( const char *  name,
struct objfile objfile 
)
static

◆ new_symbol()

static struct symbol * new_symbol ( const char *  name)
static

◆ new_symtab()

static struct compunit_symtab * new_symtab ( const char *  name,
int  maxlines,
struct objfile objfile 
)
static

◆ new_type()

static struct type * new_type ( char *  name)
static

◆ parse_external()

static void parse_external ( EXTR *  es,
int  bigend,
struct section_offsets section_offsets,
struct objfile objfile 
)
static

◆ parse_lines()

static void parse_lines ( FDR *  fh,
PDR *  pr,
struct linetable lt,
int  maxlines,
struct partial_symtab pst,
CORE_ADDR  lowest_pdr_addr 
)
static

◆ parse_partial_symbols()

static void parse_partial_symbols ( minimal_symbol_reader reader,
struct objfile objfile 
)
static

Definition at line 2326 of file mdebugread.c.

References _, add_psymbol_to_list(), ALL_OBJFILE_PSYMTABS, ANOFFSET, complaint, CUR_BFD, cur_bfd, cur_fdr, cur_sdx, dbx_end_psymtab(), DEBUG_INFO, debug_info, DEBUG_SWAP, debug_swap, deduce_language_from_filename(), do_cleanups(), ECOFF_IN_ELF, FDR_IDX, fdr_name(), objfile::flags, function_outside_compilation_unit_complaint(), gdbarch_sofun_address_maybe_missing(), gdbarch_static_transform_name(), gdbarch_static_transform_name_p(), get_objfile_arch(), get_section_index(), objfile::global_psymbols, handle_psymbol_enumerators(), has_opaque_xref(), hex_string(), if(), index_complaint(), internal_error(), language_c, language_cplus, language_unknown, LOC_BLOCK, LOC_CONST, LOC_LABEL, LOC_STATIC, LOC_TYPEDEF, make_cleanup(), max_gdbinfo, max_glevel, mdebug_next_symbol_text(), mdebug_read_symtab(), memset(), MIN_GLEVEL, mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, mst_file_text, mst_text, mst_unknown, partial_symtab::n_global_syms, partial_symtab::n_static_syms, name, new_psymtab(), partial_symtab::next, next_symbol_text, next_symbol_text_func, partial_symtab::number_of_dependencies, OBJF_REORDERED, PENDING_LIST, pending_list, processing_gcc_compilation, PST_PRIVATE, psymtab_language, objfile::psymtabs, record_minimal_symbol(), minimal_symbol_reader::record_with_info(), SC_IS_BSS, SC_IS_COMMON, SC_IS_DATA, SC_IS_SBSS, SC_IS_TEXT, SC_IS_UNDEF, objfile::sect_index_bss, objfile::sect_index_data, objfile::sect_index_text, SECT_OFF_BSS, SECT_OFF_DATA, SECT_OFF_TEXT, objfile::section_offsets, set_last_source_file(), stabs_symbol, start_psymtab_common(), objfile::static_psymbols, STRUCT_DOMAIN, symfile_complaints, symnum, partial_symtab::texthigh, partial_symtab::textlow, unknown_ext_complaint(), VAR_DOMAIN, XCNEWVEC, xfree(), xmalloc(), XNEWVEC, and xrealloc().

Referenced by mdebug_build_psymtabs().

◆ parse_procedure()

static void parse_procedure ( PDR *  pr,
struct compunit_symtab search_symtab,
struct partial_symtab pst 
)
static

◆ parse_symbol()

static int parse_symbol ( SYMR *  sh,
union aux_ext *  ax,
char *  ext_sh,
int  bigend,
struct section_offsets section_offsets,
struct objfile objfile 
)
static

Definition at line 591 of file mdebugread.c.

References _, add_block(), add_data_symbol(), add_pending(), add_symbol(), ALL_BLOCK_SYMBOLS, allocate_symbol(), ANOFFSET, field::bitsize, BLOCK_END, BLOCK_FUNCTION, BLOCK_START, BLOCK_SUPERBLOCK, parse_stack::blocktype, BLOCKVECTOR_BLOCK, BLOCKVECTOR_NBLOCKS, objfile_type::builtin_int, objfile_type::builtin_void, complaint, cur_bfd, parse_stack::cur_block, cur_fd, cur_fdr, parse_stack::cur_field, parse_stack::cur_st, parse_stack::cur_type, debug_info, debug_swap, FIELD_BITSIZE, FIELD_NAME, FIELD_TYPE, found_ecoff_debugging_info, FUNCTION_BLOCK, gdbarch_int_bit(), get_objfile_arch(), GLOBAL_BLOCK, global_sym_chain, has_opaque_xref(), hashname(), HOST_CHAR_BIT, if(), is_cplus_marker(), is_pending_symbol(), LABEL_DOMAIN, language_cplus, LOC_ARG, LOC_BLOCK, LOC_CONST, LOC_LABEL, LOC_LOCAL, LOC_REF_ARG, LOC_STATIC, LOC_TYPEDEF, lookup_function_type(), make_pointer_type(), max_gdbinfo, MDEBUG_EFI_SYMBOL_NAME, mdebug_register_index, mdebug_regparm_index, mdebugread_objfile, memset(), name, field::name, new_block(), new_symbol(), new_type(), NON_FUNCTION_BLOCK, mdebug_extra_func_info::numargs, parse_stack::numargs, obconcat(), objfile_type(), parse_type(), mdebug_extra_func_info::pdr, pop_parse_stack(), parse_stack::procadr, psymtab_language, push_parse_stack(), SC_IS_COMMON, SC_IS_UNDEF, SECT_OFF_BSS, SECT_OFF_DATA, SECT_OFF_TEXT, SET_FIELD_BITPOS, SET_FIELD_ENUMVAL, STATIC_BLOCK, STRUCT_DOMAIN, SYMBOL_ACLASS_INDEX, SYMBOL_BLOCK_VALUE, SYMBOL_DOMAIN, SYMBOL_IS_ARGUMENT, SYMBOL_LANGUAGE, SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, SYMBOL_TYPE, SYMBOL_VALUE, SYMBOL_VALUE_ADDRESS, SYMBOL_VALUE_BYTES, SYMBOL_VALUE_CHAIN, symfile_complaints, SYMTAB_BLOCKVECTOR, top_stack, TYPE_ALLOC, TYPE_CODE, TYPE_CODE_ENUM, TYPE_CODE_FUNC, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_CODE_VOID, TYPE_FIELD_ARTIFICIAL, TYPE_FIELD_TYPE, TYPE_FIELDS, TYPE_LENGTH, TYPE_NAME, TYPE_NFIELDS, TYPE_PROTOTYPED, TYPE_STUB, TYPE_TAG_NAME, TYPE_UNSIGNED, and VAR_DOMAIN.

Referenced by parse_external(), and psymtab_to_symtab_1().

◆ parse_type()

static struct type * parse_type ( int  fd,
union aux_ext *  ax,
unsigned int  aux_index,
int *  bs,
int  bigend,
const char *  sym_name 
)
static

◆ pop_parse_stack()

static void pop_parse_stack ( void  )
static

Definition at line 456 of file mdebugread.c.

References parse_stack::next, and top_stack.

Referenced by parse_symbol(), and psymtab_to_symtab_1().

◆ psymtab_to_symtab_1()

static void psymtab_to_symtab_1 ( struct objfile objfile,
struct partial_symtab pst,
const char *  filename 
)
static

Definition at line 3912 of file mdebugread.c.

References _, add_symbol_to_list(), ANOFFSET, BLOCK_END, BLOCK_START, parse_stack::blocktype, BLOCKVECTOR_BLOCK, objfile_type::builtin_void, complaint, COMPUNIT_BLOCKVECTOR, COMPUNIT_FILETABS, partial_symtab::compunit_symtab, CUR_BFD, cur_bfd, parse_stack::cur_block, cur_fd, cur_fdr, cur_sdx, parse_stack::cur_st, parse_stack::cur_type, current_subfile, DEBUG_INFO, debug_info, DEBUG_SWAP, debug_swap, partial_symtab::dependencies, do_cleanups(), end_stabs(), end_symtab(), FDR_IDX, partial_symtab::filename, found_ecoff_debugging_info, fputs_filtered(), gdb_flush(), gdb_stdout, gdbarch_addr_bits_remove(), get_last_source_file(), get_objfile_arch(), GLOBAL_BLOCK, info_verbose, linetable::item, LABEL_DOMAIN, LOC_CONST, local_symbols, make_cleanup(), MDEBUG_EFI_SYMBOL_NAME, mdebugread_objfile, memset(), partial_symtab::n_global_syms, partial_symtab::n_static_syms, n_undef_labels, n_undef_procs, n_undef_symbols, n_undef_vars, name, new_symbol(), new_symtab(), linetable::nitems, parse_stack::numargs, partial_symtab::number_of_dependencies, objfile_type(), parse_external(), parse_lines(), parse_procedure(), parse_symbol(), mdebug_extra_func_info::pdr, PENDING_LIST, pending_list, pop_parse_stack(), previous_stab_code, printf_filtered(), parse_stack::procadr, process_one_symbol(), processing_gcc_compilation, PST_PRIVATE, psymtab_language, push_parse_stack(), partial_symtab::readin, record_line, SECT_OFF_TEXT, objfile::section_offsets, shrink_linetable(), size, sort_blocks(), stabs_symbol, STATIC_BLOCK, SYMBOL_ACLASS_INDEX, SYMBOL_DOMAIN, SYMBOL_TYPE, SYMBOL_VALUE_BYTES, symfile_complaints, SYMTAB_BLOCKVECTOR, SYMTAB_LINETABLE, symtab_to_filename_for_display(), partial_symtab::texthigh, partial_symtab::textlow, top_stack, wrap_here(), xfree(), and XNEWVEC.

Referenced by mdebug_read_symtab().

◆ push_parse_stack()

static void push_parse_stack ( void  )
static

Definition at line 431 of file mdebugread.c.

References parse_stack::next, parse_stack::prev, top_stack, and XCNEW.

Referenced by parse_symbol(), and psymtab_to_symtab_1().

◆ record_minimal_symbol()

static void record_minimal_symbol ( minimal_symbol_reader reader,
const char *  name,
const CORE_ADDR  address,
enum minimal_symbol_type  ms_type,
int  storage_class,
struct objfile objfile 
)
static

◆ reg_value_complaint()

static void reg_value_complaint ( int  regnum,
int  num_regs,
const char *  sym 
)
static

Definition at line 525 of file mdebugread.c.

References _, complaint, regnum, and symfile_complaints.

Referenced by mdebug_reg_to_regnum().

◆ shrink_linetable()

static struct linetable * shrink_linetable ( struct linetable lt)
static

Definition at line 4791 of file mdebugread.c.

References xrealloc().

Referenced by psymtab_to_symtab_1().

◆ sort_blocks()

static void sort_blocks ( struct symtab s)
static

◆ unexpected_type_code_complaint()

static void unexpected_type_code_complaint ( const char *  arg1)
static

Definition at line 159 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by parse_type().

◆ unknown_ext_complaint()

static void unknown_ext_complaint ( const char *  arg1)
static

Definition at line 132 of file mdebugread.c.

References _, complaint, and symfile_complaints.

Referenced by parse_partial_symbols().

◆ upgrade_type()

static int upgrade_type ( int  fd,
struct type **  tpp,
int  tq,
union aux_ext *  ax,
int  bigend,
const char *  sym_name 
)
static

Variable Documentation

◆ basic_type_data

const struct objfile_data* basic_type_data
static

Definition at line 1375 of file mdebugread.c.

Referenced by _initialize_mdebugread(), and basic_type().

◆ cur_bfd

bfd* cur_bfd
static

◆ cur_fd

int cur_fd
static

Definition at line 194 of file mdebugread.c.

Referenced by add_data_symbol(), parse_external(), parse_symbol(), and psymtab_to_symtab_1().

◆ cur_fdr

FDR* cur_fdr
static

◆ cur_sdx

int cur_sdx
static

◆ debug_info

struct ecoff_debug_info* debug_info
static

◆ debug_swap

const struct ecoff_debug_swap* debug_swap
static

◆ found_ecoff_debugging_info

int found_ecoff_debugging_info
static

Definition at line 216 of file mdebugread.c.

Referenced by parse_procedure(), parse_symbol(), and psymtab_to_symtab_1().

◆ max_gdbinfo

int max_gdbinfo
static

Definition at line 203 of file mdebugread.c.

Referenced by mdebug_build_psymtabs(), parse_partial_symbols(), and parse_symbol().

◆ max_glevel

int max_glevel
static

Definition at line 204 of file mdebugread.c.

Referenced by mdebug_build_psymtabs(), and parse_partial_symbols().

◆ mdebug_register_funcs

const struct symbol_register_ops mdebug_register_funcs
static
Initial value:
= {
}
static int mdebug_reg_to_regnum(struct symbol *sym, struct gdbarch *gdbarch)
Definition: mdebugread.c:542

Definition at line 561 of file mdebugread.c.

Referenced by _initialize_mdebugread().

◆ mdebug_register_index

int mdebug_register_index
static

Definition at line 567 of file mdebugread.c.

Referenced by _initialize_mdebugread(), and parse_symbol().

◆ mdebug_regparm_index

int mdebug_regparm_index
static

Definition at line 568 of file mdebugread.c.

Referenced by _initialize_mdebugread(), and parse_symbol().

◆ mdebugread_objfile

struct objfile* mdebugread_objfile
static

◆ n_undef_labels

int n_undef_labels
static

Definition at line 208 of file mdebugread.c.

Referenced by parse_external(), and psymtab_to_symtab_1().

◆ n_undef_procs

int n_undef_procs
static

Definition at line 208 of file mdebugread.c.

Referenced by parse_external(), and psymtab_to_symtab_1().

◆ n_undef_symbols

int n_undef_symbols
static

Definition at line 208 of file mdebugread.c.

Referenced by parse_external(), and psymtab_to_symtab_1().

◆ n_undef_vars

int n_undef_vars
static

Definition at line 208 of file mdebugread.c.

Referenced by parse_external(), and psymtab_to_symtab_1().

◆ pending_list

struct mdebug_pending** pending_list
static

◆ psymtab_language

enum language psymtab_language = language_unknown
static

◆ stabs_symbol

char stabs_symbol[] = STABS_SYMBOL
static

Definition at line 212 of file mdebugread.c.

Referenced by parse_partial_symbols(), and psymtab_to_symtab_1().

◆ top_stack

struct parse_stack * top_stack
static