使用gdb时出错:未加载任何符号表。使用“文件”命令?

时间:2019-08-05 23:41:32

标签: gcc gdb

运行命令break hello.c:main时出现以下错误:

No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (hello.c:main) pending.

我使用命令gcc -g -o hello hello.c编译了hello.c。我不太确定自己在做什么错。有人可以指出我的解决方案吗?

0 个答案:

没有答案