gdb troubles

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?

5 thoughts on “gdb troubles”

  1. 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.

Comments are closed.