a custom GDB UI made with Python and DearPyGui
I made this scheme about 2 weeks before actually doing something, it's not accurate but it should be enough:
(Ignore the QEMU part for now)
You need these python libraries installed:
dearpygui: (python wrappers for Dear ImGui)[https://github.com/hoffstadt/DearPyGui]pygdbmi: (the bridge between Python and GDB)[https://cs01.github.io/pygdbmi/]
You should run pyDearGDB from your project's directory (i.e. python3 ../pyDearGDB/main.py, below is the structure i work with)
.
├──pyDearGDB
│ ├──main.py
│ └──...
└──[your project directory here]
You must give to main.py the path to the executable you want to debug, for example:
python3 ../pyDearGDB/main.py build/mainBTW, if you don't give the executable path, the script won't run anyways and will show you the available arguments : )
oh i forgot, you can do
main.py -hto show the arguments
You can additionally pass a GDB script with the -x flag:
python3 ../pyDearGDB/main.py build/main -x path/to/script.gdbpyDearGDB can't do anything for now, but here's a cool preview for the current UI status:
BTW if you don't like how i arranged the windows, you can move them as you like (so you can reveal the background color : )


