Closed dp12 closed 2 years ago
Hi, can you provide more information about the version of your gdb, Python, and prompt_toolkit?
By the way, this plugin only works with prompt_toolkit 2 now, so please ensure that you run pip install --target="$HOME/GEP/" prompt_toolkit==2.0.10
before using GEP.
Thanks for the quick reply @lebr0nli! I guess I created the issue too soon. The fix was quick, but posting what I did for future users who run into this problem:
I tested what version of prompt_tookit I had installed by running the following in gdb:
pwndbg> python
>import prompt_toolkit
>print(prompt_toolkit.__version__)
>end
3.0.18
Of course, prompt_toolkit 3 won't work with this plugin.
Even doing python -m pip install -Iv --target="$HOME/GEP/" prompt_toolkit==2.0.10
didn't seem to fix the issue; gdb stubbornly refused to use prompt_toolkit 2, so I had to uninstall the old prompt toolkit:
python -m pip uninstall prompt_toolkit
Then I re-ran the pip install of prompt_tookit 2 and everything started working.
I think my import mechanism go wrong so even doing pip install --target="$HOME/GEP/" prompt_toolkit==2.0.10
didn't seem to fix the issue, I will try to fix this problem to let everyone who using prompt_toolkit 3 can use GEP without uninstalling it.
Thanks for the bug!
This is a really cool plugin and I'm eager to use its features. However, when I try to load it with
source ~/GEP/.gdbinit-gep.py
, I get an error about "'_GdbOutputFile' object has no attribute 'fileno'". It looks like there's some issue with prompt_toolkit. To get a full backtrace, I did the following:Any ideas about what might be happening?