Avoid invoking a function of property when auto-completing

See https://github.com/pwndbg/pwndbg/pull/1170#issuecomment-1259041809
This commit is contained in:
lebr0nli 2022-09-27 16:37:14 +08:00 committed by Disconnect3d
parent 6a3faa0a17
commit 33d9e35b0f
1 changed files with 2 additions and 0 deletions

View File

@ -32,7 +32,9 @@ def ipi():
with switch_to_ipython_env():
# Use `gdb.execute` to embed IPython into GDB's variable scope
code4ipython = """import IPython
import jedi
import pwn
jedi.Interpreter._allow_descriptor_getattr_default = False
IPython.embed(colors='neutral',banner1='',confirm_exit=False,simple_prompt=False)
""".strip().replace(
"\n", ";"