LLDB mainline
InferiorCallPOSIX.cpp File Reference

Go to the source code of this file.

Macros

#define PROT_NONE   0
#define PROT_READ   1
#define PROT_WRITE   2
#define PROT_EXEC   4

Functions

static Address GetCallableAddress (Target &target, const SymbolContextList &sc_list)
 Pick a call target from sc_list.

Macro Definition Documentation

◆ PROT_EXEC

◆ PROT_NONE

◆ PROT_READ

◆ PROT_WRITE

Function Documentation

◆ GetCallableAddress()

Address GetCallableAddress ( Target & target,
const SymbolContextList & sc_list )
static

Pick a call target from sc_list.

A symbol from an ELF filter/auxiliary library is resolved through its filtee(s) first, falling back to its own definition only if none of them provide it, mirroring what the dynamic linker does.

Definition at line 40 of file InferiorCallPOSIX.cpp.

References lldb::eSymbolTypeReExported, lldb_private::SymbolContextList::GetContextAtIndex(), lldb_private::SymbolContext::GetFunctionOrSymbolAddress(), lldb_private::SymbolContextList::GetSize(), lldb_private::Symbol::GetType(), lldb_private::SymbolContext::module_sp, lldb_private::Symbol::ResolveReExportedSymbol(), and lldb_private::SymbolContext::symbol.

Referenced by lldb_private::InferiorCallMmap(), and lldb_private::InferiorCallMunmap().