Today I nearly went mad while trying to get gdb and ddd working. Every program i wanted to debug just gave me this:
(gdb) run
Starting program: /root/hello
Cannot exec : No such file or directory
Program exited with code 0177.
After trying several versions, searching on bugs.g.o, asking in multiple irc channels and a lot of swearing i had the flash of genius that I could actually google for this cryptic message… Perhaps I should change firefox’ homepage back to google instead of my favourite news portal.
Finally, I got gdb working, I just had to export SHELL=/bin/bash
i.e. echo "SHELL=/bin/bash" >> /etc/profile.env
. Why on earth does gdb need $SHELL?
Your comment saved me a lot of time…
Same here, thanks! I wish I knew why it needed it though :/
Wow… I’m glad you posted this. I was getting really pissed off, haha.
Saved me a whole lot of time too… š Thnx!!!
I can just agree with the above. And the fact that we have had problems with this means that; gdb needs to be fixed, gdb is currently broken. IMHO.