GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
minimal_symbol Struct Reference

#include "symtab.h"

Inheritance diagram for minimal_symbol:
general_symbol_info

Public Member Functions

LONGEST value_longest () const
 
CORE_ADDR value_address (objfile *objfile) const
 
CORE_ADDR value_address () const =delete
 
unrelocated_addr unrelocated_address () const
 
unrelocated_addr unrelocated_end_address () const
 
minimal_symbol_type type () const
 
void set_type (minimal_symbol_type type)
 
unsigned long size () const
 
void set_size (unsigned long size)
 
bool has_size () const
 
bool target_flag_1 () const
 
void set_target_flag_1 (bool target_flag_1)
 
bool target_flag_2 () const
 
void set_target_flag_2 (bool target_flag_2)
 
bool data_p () const
 
bool text_p () const
 
bool maybe_copied (objfile *objfile) const
 
- Public Member Functions inherited from general_symbol_info
const char * linkage_name () const
 
const char * natural_name () const
 
const char * print_name () const
 
const char * demangled_name () const
 
const char * search_name () const
 
void set_linkage_name (const char *linkage_name)
 
void set_demangled_name (const char *name, struct obstack *obstack)
 
enum language language () const
 
void set_language (enum language language, struct obstack *obstack)
 
void compute_and_set_names (gdb::string_view linkage_name, bool copy_name, struct objfile_per_bfd_storage *per_bfd, gdb::optional< hashval_t > hash=gdb::optional< hashval_t >())
 
CORE_ADDR value_address () const
 
void set_value_address (CORE_ADDR address)
 
unrelocated_addr unrelocated_address () const
 
void set_unrelocated_address (unrelocated_addr addr)
 
void set_section_index (short idx)
 
short section_index () const
 
struct obj_sectionobj_section (const struct objfile *objfile) const
 

Public Attributes

unsigned long m_size
 
const char * filename
 
__extension__ enum minimal_symbol_type m_type: MINSYM_TYPE_BITS
 
unsigned int created_by_gdb: 1
 
unsigned int m_target_flag_1: 1
 
unsigned int m_target_flag_2: 1
 
unsigned int m_has_size: 1
 
unsigned int name_set: 1
 
struct minimal_symbolhash_next
 
struct minimal_symboldemangled_hash_next
 
- Public Attributes inherited from general_symbol_info
const char * m_name
 
union { 
 
   LONGEST   ivalue 
 
   const struct block *   block 
 
   const gdb_byte *   bytes 
 
   CORE_ADDR   address 
 
   unrelocated_addr   unrel_addr 
 
   const struct common_block *   common_block 
 
   struct symbol *   chain 
 
m_value 
 
union { 
 
   struct obstack *   obstack 
 
   const char *   demangled_name 
 
language_specific 
 
__extension__ enum language m_language: LANGUAGE_BITS
 
unsigned int ada_mangled: 1
 
short m_section
 

Detailed Description

Definition at line 740 of file symtab.h.

Member Function Documentation

◆ data_p()

bool minimal_symbol::data_p ( ) const

Definition at line 451 of file symtab.c.

References m_type, mst_abs, mst_bss, mst_data, mst_file_bss, and mst_file_data.

Referenced by find_pc_sect_compunit_symtab().

◆ has_size()

bool minimal_symbol::has_size ( ) const
inline

Definition at line 799 of file symtab.h.

References m_has_size.

Referenced by build_address_symbolic().

◆ maybe_copied()

bool minimal_symbol::maybe_copied ( objfile * objfile) const

◆ set_size()

void minimal_symbol::set_size ( unsigned long size)
inline

Definition at line 791 of file symtab.h.

References m_has_size, m_size, and size().

Referenced by elf_rel_plt_read(), elf_symtab_read(), and ppc64_elf_make_msymbol_special().

◆ set_target_flag_1()

void minimal_symbol::set_target_flag_1 ( bool target_flag_1)
inline

Definition at line 813 of file symtab.h.

References m_target_flag_1, and target_flag_1().

Referenced by ppc_elfv2_elf_make_msymbol_special().

◆ set_target_flag_2()

void minimal_symbol::set_target_flag_2 ( bool target_flag_2)
inline

Definition at line 827 of file symtab.h.

References m_target_flag_2, and target_flag_2().

◆ set_type()

void minimal_symbol::set_type ( minimal_symbol_type type)
inline

Definition at line 777 of file symtab.h.

References m_type, and type().

Referenced by coff_read_minsyms(), and minimal_symbol_reader::record_full().

◆ size()

unsigned long minimal_symbol::size ( ) const
inline

◆ target_flag_1()

bool minimal_symbol::target_flag_1 ( ) const
inline

Definition at line 806 of file symtab.h.

References m_target_flag_1.

Referenced by ppc_elfv2_skip_entrypoint(), and set_target_flag_1().

◆ target_flag_2()

bool minimal_symbol::target_flag_2 ( ) const
inline

Definition at line 820 of file symtab.h.

References m_target_flag_2.

Referenced by set_target_flag_2().

◆ text_p()

bool minimal_symbol::text_p ( ) const

◆ type()

minimal_symbol_type minimal_symbol::type ( ) const
inline

◆ unrelocated_address()

unrelocated_addr minimal_symbol::unrelocated_address ( ) const
inline

◆ unrelocated_end_address()

unrelocated_addr minimal_symbol::unrelocated_end_address ( ) const
inline

Definition at line 763 of file symtab.h.

References size(), and unrelocated_address().

Referenced by lookup_minimal_symbol_by_pc_section().

◆ value_address() [1/2]

CORE_ADDR minimal_symbol::value_address ( ) const
delete

◆ value_address() [2/2]

CORE_ADDR minimal_symbol::value_address ( objfile * objfile) const

◆ value_longest()

LONGEST minimal_symbol::value_longest ( ) const
inline

Definition at line 742 of file symtab.h.

References general_symbol_info::m_value.

Member Data Documentation

◆ created_by_gdb

unsigned int minimal_symbol::created_by_gdb

Definition at line 847 of file symtab.h.

Referenced by elf_symtab_read().

◆ demangled_hash_next

struct minimal_symbol* minimal_symbol::demangled_hash_next

◆ filename

const char* minimal_symbol::filename

Definition at line 839 of file symtab.h.

Referenced by elf_symtab_read(), and found_minimal_symbols::maybe_collect().

◆ hash_next

struct minimal_symbol* minimal_symbol::hash_next

◆ m_has_size

unsigned int minimal_symbol::m_has_size

Definition at line 856 of file symtab.h.

Referenced by has_size(), and set_size().

◆ m_size

unsigned long minimal_symbol::m_size

Definition at line 836 of file symtab.h.

Referenced by set_size(), and size().

◆ m_target_flag_1

unsigned int minimal_symbol::m_target_flag_1

Definition at line 850 of file symtab.h.

Referenced by set_target_flag_1(), and target_flag_1().

◆ m_target_flag_2

unsigned int minimal_symbol::m_target_flag_2

Definition at line 851 of file symtab.h.

Referenced by set_target_flag_2(), and target_flag_2().

◆ m_type

__extension__ enum minimal_symbol_type minimal_symbol::m_type

Definition at line 843 of file symtab.h.

Referenced by data_p(), maybe_copied(), set_type(), text_p(), and type().

◆ name_set

unsigned int minimal_symbol::name_set

Definition at line 860 of file symtab.h.


The documentation for this struct was generated from the following files: