Fix context args crash on missing instruction (#1055)

This commit is contained in:
Artur Cygan 2022-08-11 00:00:48 +02:00 committed by GitHub
parent 214f993047
commit f2e5c98f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ def get(instruction):
"""
n_args_default = 4
if instruction is None:
return []
if instruction.address != pwndbg.regs.pc:
return []