Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create breakpoint: -break-insert: Garbage following <location> #211

Closed
GabrielMajeri opened this issue Jun 29, 2018 · 1 comment
Closed
Labels

Comments

@GabrielMajeri
Copy link

Describe the bug
I've tried to use gdbgui to debug a simple Rust program. Adding a breakpoint through the GUI leads to the -break-insert: Garbage following <location> error message.

I've searched the internet and apparently this was related to spaces in the project's path. Moving the executable and source code to a new path, with no spaces, fixes the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Rust project, with spaces in the directory path
  2. Run gdbgui target/debug/<project name>
  3. Notice that trying to add a breakpoint through the GUI does not work

Expected behavior
gdbgui should work with paths with spaces in its names. If this is a limitation of GDB, then it should at least warn the user.

Please complete the following information:

  • OS: Arch Linux x86_64
  • gdbgui version: 0.12.0.0
  • gdb version: 8.1
  • browser [e.g. chrome, safari]: latest stable Chromium
  • python packages (pip freeze):
click==6.7
Flask==0.12.4
Flask-Compress==1.4.0
Flask-SocketIO==2.9.6
gdbgui==0.12.0.0
gevent==1.3.4
greenlet==0.4.13
itsdangerous==0.24
pygdbmi==0.8.3.0
python-engineio==2.2.0
python-socketio==2.0.0
Werkzeug==0.14.1
@cs01
Copy link
Owner

cs01 commented Jul 15, 2018

Thanks for filing, working on a fix now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants