Remove `cast` in pwndbg.aglib.regs (#3233)

pull/3234/head
patryk4815 4 months ago committed by GitHub
parent 317cbf5111
commit 139602d112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -112,10 +112,7 @@ class module(ModuleType):
value = get_register("xPSR", frame)
if value is None:
return None
size = pwndbg.aglib.typeinfo.unsigned.get(
value.type.sizeof, pwndbg.aglib.typeinfo.ulong
)
value = value.cast(size)
value = int(value)
if reg == "pc" and pwndbg.aglib.arch.name == "i8086":
if self.cs is None:
return None

Loading…
Cancel
Save