angr.go.knowledge_plugins.go_globals

class angr.go.knowledge_plugins.go_globals.GoGlobals

Bases: KnowledgeBasePlugin

Package-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 by angr.go.analyses.go_globals_recovery.GoGlobalsRecovery, lazily on first use unless it was run ahead of time; kb.go_signatures.variable_at consults it after the symbol-backed sources.

__init__(kb)
load()

Run GoGlobalsRecovery once; later calls are no-ops.

Return type:

None

mark_loaded()
Return type:

None

property loaded: bool
property variables: dict[int, GoVariable]
note(var, replace=False)

Record a variable; an address already known keeps its first record unless replace.

Return type:

None

Parameters:
variable_at(addr)
Return type:

GoVariable | None

Parameters:

addr (int)

addr_of(name)
Return type:

int | None

Parameters:

name (str)

copy()