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

Error: spawn gdb ENOENT #549

Open
UltraBlackLinux opened this issue Jan 17, 2022 · 6 comments
Open

Error: spawn gdb ENOENT #549

UltraBlackLinux opened this issue Jan 17, 2022 · 6 comments

Comments

@UltraBlackLinux
Copy link

Hey there,
I'm getting an error trying to debug my C++ binary:

Could not start debugger process, does the program exist in filesystem?
Error: spawn gdb ENOENT

Sadly I wasn't able to find any info about this whatsoever and that's why I am asking here.
Do I need a custom run configuration?
Is there anything else I need to set?
Thanks!

@yyoncho
Copy link
Member

yyoncho commented Jan 17, 2022

Sounds like you havent installed gdb

@UltraBlackLinux
Copy link
Author

UltraBlackLinux commented Jan 17, 2022

Sounds like you havent installed gdb

Actually I have. I even installed lldb and tried with the lldb run configuration, but I still get the same error

@UltraBlackLinux
Copy link
Author

I tried this again, and it now seems to work.

@UltraBlackLinux
Copy link
Author

It's back. It might be related to suspending

@yyoncho
Copy link
Member

yyoncho commented Feb 28, 2022

most likely you are starting emacs with different PATH.

@themkat
Copy link
Contributor

themkat commented May 6, 2022

Had this lately when working with dap-mode with dap-gdb-lldb. The issue there was that cwd contained tilde characters to mark the home folder (e.g, ~/myworkspace/myproject). The server did not seem to like tilde characters much on my Mac, and wanted absolute paths.

Just mentioning in case someone else gets this issue, and have already checked their PATH 🙂 Got exactly the same error message btw, just with arm-none-eabi-gdb instead.

EDIT: Seems like the server/adapter I used have an issue on this issue that I found just now. Linking for future reference in case it is relevant here 🙂 WebFreak001/code-debug#287

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

No branches or pull requests

3 participants