当前位置: 技术问答>linux和unix
gdb调试的问题??
来源: 互联网 发布时间:2015-09-21
本文导语: li s t 提示说: (gdb) list No symbol table is loaded. Use the "file" command. 但是run 的话可以运行的,已经试过file hello了,还是不行 | 你在编译的时候加个 -g 的选项试试: 比如 gcc -o file -g file...
li s t 提示说:
(gdb) list
No symbol table is loaded. Use the "file" command.
但是run 的话可以运行的,已经试过file hello了,还是不行
(gdb) list
No symbol table is loaded. Use the "file" command.
但是run 的话可以运行的,已经试过file hello了,还是不行
|
你在编译的时候加个 -g 的选项试试:
比如 gcc -o file -g file.c
或者 g++ -o file -g file.C
比如 gcc -o file -g file.c
或者 g++ -o file -g file.C
|
嗯那,你要调试的程序不是debug的,必须是debug的才能调试
|
程序编译的时候没有加-g选项。