struct FindNameContext

Defined at line 49 of file ../../src/developer/debug/zxdb/expr/find_name.h

FindName can search for different levels of things depending on how much context it's given. This

class encapsulates all of these variants.

Public Members

const TargetSymbols * target_symbols
const ModuleSymbols * module_symbols
const CodeBlock * block
optional language

Public Methods

void FindNameContext (std::optional<ExprLanguage> lang)

No symbol context. This can be useful when searching for names on structures where there is no

environmental state needed.

Defined at line 52 of file ../../src/developer/debug/zxdb/expr/find_name.h

void FindNameContext (const ProcessSymbols * ps, const SymbolContext & symbol_context, const CodeBlock * cb, std::optional<ExprLanguage> lang)

Search everything given a live context. The current module is extracted from the given symbol

context if possible. This can be SymbolContext::ForRelativeAddresses() to skip this.

Note that this tolerates a null ProcessSymbols which sets no symbol paths. This is useful for

some tests.

Defined at line 487 of file ../../src/developer/debug/zxdb/expr/find_name.cc

void FindNameContext (const TargetSymbols * ts, std::optional<ExprLanguage> lang)

Searches a target's symbols. This is used to search for symbols in a non-running program.

Defined at line 506 of file ../../src/developer/debug/zxdb/expr/find_name.cc