lebr0nli / GEP

GEP (GDB Enhanced Prompt) - a GDB plug-in to enhance your GDB with fzf history search, fish-like autosuggestions, tab auto-completion with fzf, and more!
MIT License
93 stars 7 forks source link

somthing was wrong with layout src #13

Open ywgrit opened 1 year ago

ywgrit commented 1 year ago

Hi, thank you for the convenience brought by this tool to my debugging experience. It is really useful! I find something was wrong when gdb run "layout [src|asm|}regs|split|next|prev]". The specific problems are described below.

When I typed "n", the pane of src was broken, and gdb exited when I continue typing "n", the following is the screenshot image

The Operator system is Ubuntu 20.04.6 TLS The version of gdb is 9.2

thanks

lebr0nli commented 1 year ago

Hi, thanks for reporting the bug! I can confirm that GEP has this issue when using TUI together here. But, hmm, I have no idea how to fix it currently... I'll take a look at the source code of gdb that how did it handle the TUI mode for each prompt, and try to emulate those behaviors if possible. (But I have to say, if somehow we can't emulate those behaviors correctly, I am afraid that the current approach that GEP used will never support TUI mode :( )

I'll let you know if I got the ideas to fix it!

ywgrit commented 1 year ago

Hi, thanks for reporting the bug! I can confirm that GEP has this issue when using TUI together here. But, hmm, I have no idea how to fix it currently... I'll take a look at the source code of gdb that how did it handle the TUI mode for each prompt, and try to emulate those behaviors if possible. (But I have to say, if somehow we can't emulate those behaviors correctly, I am afraid that the current approach that GEP used will never support TUI mode :( )

I'll let you know if I got the ideas to fix it!

Thanks