GDB调试提示找不到文件
[root@localhost pacp_server]# gdb ./pcap
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /mnt/hgfs/virtual_machine/pacp_server/pcap...done.
(gdb) break main.cc:43
No source file named main.cc.
Make breakpoint pending on future shared library load? (y or [n])
请问这个是怎么回事啊,网上的方法我试了也不行,请求高手指教!
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /mnt/hgfs/virtual_machine/pacp_server/pcap...done.
(gdb) break main.cc:43
No source file named main.cc.
Make breakpoint pending on future shared library load? (y or [n])
请问这个是怎么回事啊,网上的方法我试了也不行,请求高手指教!
...全文
相关推荐
Linux下GDB的移植
例如,在编译GDB时,可能会出现找不到libtermcap.a的提示,这时候需要将ncurses生成的lib文件夹和include文件夹拷贝到指定的目录下。
NS3组网交互仿真.zip
本文详细介绍了如何在VSCode、gcc和gdb环境下搭建ns3的开发环境。内容包括VSCode的安装、C/C++扩展的配置、代码智能提示、构建任务以及调试的配置。最后,解决了.so文件找不到的问题。
vscode 使用c++调试程序的配置文件
如果你在参考博文中遇到的错误是关于`gdb`找不到的,可能需要检查`miDebuggerPath`是否正确指向了GDB的安装位置,或者确保已将其添加到系统的PATH环境变量中。
Android NDK翻译之 NDK-GDB.html
- `--port=<port>`:自定义与调试程序通信的本地TCP端口,默认为5039。调试过程中,GDB可能会报告找不到某些系统库的错误,这是正常现象,因为这些库在开发环境中并未包含。
NDK GDB 翻译
### 注意事项当GDB找不到系统库(如libc.so, libstdc++.so, liblog.so, libcutils.so等)的symbol/debug版本时,可能会显示大量错误信息,这是正常的


