angr.go.knowledge_plugins.go_globals¶
- class angr.go.knowledge_plugins.go_globals.GoGlobals¶
Bases:
KnowledgeBasePluginPackage-level variables recovered without data symbols: the runtime’s own globals located by shape (
angr.go.analyses.runtime_globals) and the variables typed from their initializers (angr.go.analyses.package_variables). Computed once per project byangr.go.analyses.go_globals_recovery.GoGlobalsRecovery, lazily on first use unless it was run ahead of time;kb.go_signatures.variable_atconsults it after the symbol-backed sources.- __init__(kb)¶
- property variables: dict[int, GoVariable]¶
- note(var, replace=False)¶
Record a variable; an address already known keeps its first record unless
replace.- Return type:
- Parameters:
var (GoVariable)
replace (bool)
- copy()¶