Add support for `LLDBValue.string()` in array types (#3107)

pull/3108/head
Matt. 6 months ago committed by GitHub
parent bd4d7e7907
commit ef8a6509a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -527,7 +527,12 @@ class LLDBValue(pwndbg.dbg_mod.Value):
@override
def string(self) -> str:
addr = self.inner.unsigned
if self.inner.type.IsArrayType():
# Array types need to have their address taken in LLDB.
addr = self.inner.AddressOf().unsigned
else:
addr = self.inner.unsigned
error = lldb.SBError()
# Read strings up to 4GB.

Loading…
Cancel
Save