Search code examples
gdbtui

gdb tui, dl-debug.c:74 no such file or directory


If I start gdb -tui or gdbtui with an -g flag compiled file, then set b main and press r I get the hint dl-debug.c:74 no such file or directory and the output while stepping through the source window will be written to the source window at the bottom, which also messes up this window so that is not really readable. I've already looked at askubuntu.com and Sourceware Bugzilla – Bug List and at this site but found no solution.

I also tried out sudo apt-get install ddd on another machine to go to the trouble out of the way, but then I only get authentication failure, which I also already asked without response on ask ubuntu.

Any help or hint is appreciated.


Solution

  • dl-debug.c:74 no such file or directory

    This message means that you've tried to step into GLIBC (more precisely the dynamic loader) source, which you didn't install.

    Solution: don't try to step into it, or install GLIBC source and make GDB find it (help directory).