尝试在gdb中添加断点时,我不断收到此错误消息.
我用这些命令编译:
gcc -g main.c utmpib2.c -o main.o
and:
cc -g main.c utmpib2.c -o main.o
and also:
g++ -g main.c utmpib2.c -o main.o
Run Code Online (Sandbox Code Playgroud)
我也试过"-ggdb"而不是"-g",我仍然得到错误信息.
然后我执行gdb:
$gdb
Run Code Online (Sandbox Code Playgroud)
在gdb中:
(gdb)exec-file main.o
(gdb)break 59
No symbol table is loaded. Use the "file" command.
Run Code Online (Sandbox Code Playgroud)