GDB (API)
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions
minsyms.h File Reference

Go to the source code of this file.

Classes

struct  bound_minimal_symbol
 
class  minimal_symbol_reader
 

Macros

#define SYMBOL_HASH_NEXT(hash, c)    ((hash) * 67 + TOLOWER ((unsigned char) (c)) - 113)
 

Enumerations

enum class  lookup_msym_prefer { TEXT , TRAMPOLINE , GNU_IFUNC }
 

Functions

bool msymbol_is_function (struct objfile *objfile, minimal_symbol *minsym, CORE_ADDR *func_address_p=NULL)
 
unsigned int msymbol_hash (const char *)
 
unsigned int msymbol_hash_iw (const char *)
 
struct bound_minimal_symbol lookup_minimal_symbol (const char *, const char *, struct objfile *)
 
struct bound_minimal_symbol lookup_bound_minimal_symbol (const char *)
 
struct bound_minimal_symbol lookup_minimal_symbol_text (const char *, struct objfile *)
 
struct bound_minimal_symbol lookup_minimal_symbol_linkage (const char *name, struct objfile *objf) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
 
struct bound_minimal_symbol lookup_minimal_symbol_linkage (const char *name, bool only_main) ATTRIBUTE_NONNULL(1)
 
struct minimal_symbollookup_minimal_symbol_by_pc_name (CORE_ADDR, const char *, struct objfile *)
 
struct bound_minimal_symbol lookup_minimal_symbol_by_pc_section (CORE_ADDR pc_in, struct obj_section *section, lookup_msym_prefer prefer=lookup_msym_prefer::TEXT, bound_minimal_symbol *previous=nullptr)
 
struct bound_minimal_symbol lookup_minimal_symbol_by_pc (CORE_ADDR)
 
void iterate_over_minimal_symbols (struct objfile *objf, const lookup_name_info &name, gdb::function_view< bool(struct minimal_symbol *)> callback)
 
CORE_ADDR minimal_symbol_upper_bound (struct bound_minimal_symbol minsym)
 
typefind_minsym_type_and_address (minimal_symbol *msymbol, objfile *objf, CORE_ADDR *address_p)
 

Macro Definition Documentation

◆ SYMBOL_HASH_NEXT

#define SYMBOL_HASH_NEXT ( hash,
c )    ((hash) * 67 + TOLOWER ((unsigned char) (c)) - 113)

Definition at line 196 of file minsyms.h.

Enumeration Type Documentation

◆ lookup_msym_prefer

Enumerator
TEXT 
TRAMPOLINE 
GNU_IFUNC 

Definition at line 255 of file minsyms.h.

Function Documentation

◆ find_minsym_type_and_address()

type * find_minsym_type_and_address ( minimal_symbol * msymbol,
objfile * objf,
CORE_ADDR * address_p )

◆ iterate_over_minimal_symbols()

void iterate_over_minimal_symbols ( struct objfile * objf,
const lookup_name_info & name,
gdb::function_view< bool(struct minimal_symbol *)> callback )

◆ lookup_bound_minimal_symbol()

struct bound_minimal_symbol lookup_bound_minimal_symbol ( const char * )

◆ lookup_minimal_symbol()

struct bound_minimal_symbol lookup_minimal_symbol ( const char * ,
const char * ,
struct objfile *  )

◆ lookup_minimal_symbol_by_pc()

struct bound_minimal_symbol lookup_minimal_symbol_by_pc ( CORE_ADDR )

◆ lookup_minimal_symbol_by_pc_name()

struct minimal_symbol * lookup_minimal_symbol_by_pc_name ( CORE_ADDR ,
const char * ,
struct objfile *  )

◆ lookup_minimal_symbol_by_pc_section()

struct bound_minimal_symbol lookup_minimal_symbol_by_pc_section ( CORE_ADDR pc_in,
struct obj_section * section,
lookup_msym_prefer prefer = lookup_msym_prefer::TEXT,
bound_minimal_symbol * previous = nullptr )

◆ lookup_minimal_symbol_linkage() [1/2]

struct bound_minimal_symbol lookup_minimal_symbol_linkage ( const char * name,
bool only_main )
extern

◆ lookup_minimal_symbol_linkage() [2/2]

struct bound_minimal_symbol lookup_minimal_symbol_linkage ( const char * name,
struct objfile * objf )
extern

◆ lookup_minimal_symbol_text()

struct bound_minimal_symbol lookup_minimal_symbol_text ( const char * ,
struct objfile *  )

◆ minimal_symbol_upper_bound()

CORE_ADDR minimal_symbol_upper_bound ( struct bound_minimal_symbol minsym)

◆ msymbol_hash()

unsigned int msymbol_hash ( const char * )

◆ msymbol_hash_iw()

unsigned int msymbol_hash_iw ( const char * )

◆ msymbol_is_function()

bool msymbol_is_function ( struct objfile * objfile,
minimal_symbol * minsym,
CORE_ADDR * func_address_p = NULL )