Breakpoint commands cause session to crash
Describe the bug In the terminal window of the GUI, attempting to create a breakpoint command causes the session to crash. To Reproduce Steps to reproduce the behavior:
- Place any breakpoint you wish to add a command to
- Go to the bottom left terminal of the GUI to run gdb commands
- Type
info bto get the breakpoint number N you wish to add a command to - Type
command Nwhere N is that number - For testing purposes do the following:
print "hello world, from breakpoint command", press enterend- Once you hit enter again, the session stalls then crashes and loses connection to the server
Expected behavior
Creating a command should pose no issue. When gdb hits the breakpoint it would essentially run the sequence of commands given until end and do what the debugging programmer wants it to do. This is one of the, in my opinion, quintessential features of using GDB along with conditional breakpoints. Luckily, conditional breakpoints work properly.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
- OS: Ubuntu 20.04.2 LTS
- gdbgui version (
gdbgui -v): 0.14.0.2 - gdb version (
gdb -v): 9.2 - browser [e.g. chrome, safari]: Mozilla Firefox 85.0
- python packages (
pip freeze): NOTE: I'm using a python3 virtual environment and simply downloaded the PyPi for gdbgui Brotli==1.0.9 click==7.1.2 dnspython==2.1.0 eventlet==0.25.2 Flask==0.12.5 Flask-Compress==1.8.0 Flask-SocketIO==2.9.6 gdbgui==0.14.0.2 gevent==1.5.0 gevent-websocket==0.10.1 greenlet==0.4.16 itsdangerous==1.1.0 Jinja2==2.11.3 MarkupSafe==1.1.1 monotonic==1.5 pygdbmi==0.10.0.0 Pygments==2.7.4 python-engineio==3.14.2 python-socketio==4.6.1 six==1.15.0 Werkzeug==0.16.1
Additional context Last but not least, a big thank you goes out to all the developers on this project! I was super excited when I was directed to gdbgui because I've been loving learning gdb thus far but I really think added some display features really help. Such as tables for viewing addresses/memories/variables as well as easily placed breakpoints. Really an amazing project, I hope this issue gets resolved and allows the addition of this powerful feature
I'm also seeing this on Debian testing with:
- gdbgui 0.14.0.2 built locally from the Git tag
- gdb 9.1
- firefox 78.9.0esr
I have also confirmed it on a local build of 0.14.0.1. I couldn't test my build of 0.14.0.0 (it popped open a browser window, which just gave a connection error).