lldb: fix lookup symbol for specific objfile (#3251)

* lldb: fix lookup symbol for specific objfile

* fix lint
pull/3258/head
patryk4815 4 months ago committed by GitHub
parent 1d374498a8
commit 89095d1214
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1405,7 +1405,11 @@ class LLDBProcess(pwndbg.dbg_mod.Process):
variables_types: Dict[Tuple[int, str], LLDBType] = {} variables_types: Dict[Tuple[int, str], LLDBType] = {}
if type in (pwndbg.dbg_mod.SymbolLookupType.VARIABLE, pwndbg.dbg_mod.SymbolLookupType.ANY): if type in (pwndbg.dbg_mod.SymbolLookupType.VARIABLE, pwndbg.dbg_mod.SymbolLookupType.ANY):
variables: lldb.SBValueList = (objfile or self.target).FindGlobalVariables(name, 0) variables: lldb.SBValueList
if objfile:
variables = objfile.FindGlobalVariables(self.target, name, 0)
else:
variables = self.target.FindGlobalVariables(name, 0)
var: lldb.SBValue var: lldb.SBValue
for var in variables: for var in variables:
# LLDB[1] is attempting to resolve a TLS variable, but it fails with the following error: # LLDB[1] is attempting to resolve a TLS variable, but it fails with the following error:

Loading…
Cancel
Save