gdb tui, dl-debug.c:74 没有这样的文件或目录 [英] gdb tui, dl-debug.c:74 no such file or directory
问题描述
如果我用 -g
标志编译文件启动 gdb -tui
或 gdbtui
,然后设置 b main
然后按 r
我得到提示 dl-debug.c:74 no such file or directory
并且单步执行源窗口时的输出将被写入源窗口在底部,这也弄乱了这个窗口,所以它不是真的可读.我已经看过 askubuntu.com 和 Sourceware Bugzilla – Bug 列表 并在此站点上,但没有找到解决方案.
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.
我也在另一台机器上尝试了 sudo apt-get install ddd
来解决问题,但后来我只得到身份验证失败,我也 已经在询问 ubuntu 时询问但没有回应.
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.
感谢任何帮助或提示.
推荐答案
dl-debug.c:74 没有这样的文件或目录
此消息表示您已尝试步入 GLIBC(更准确地说是动态加载器)源,但您并未安装该源.
This message means that you've tried to step into GLIBC (more precisely the dynamic loader) source, which you didn't install.
解决方法:不要尝试进入,或者安装GLIBC源码让GDB找到它(帮助目录
).
Solution: don't try to step into it, or install GLIBC source and make GDB find it (help directory
).
这篇关于gdb tui, dl-debug.c:74 没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!