码迷,mamicode.com
首页 > 其他好文 > 详细

No symbol table is loaded. Use the "file" command.

时间:2019-08-19 21:04:47      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:编译   linux c   文件   提示   执行   use   lis   执行文件   list   

No symbol table is loaded.  Use the "file" command.

 

gdb 

 

1. 首先使用gcc   -g    .c文件   -o  可执行文件名  进行编译,再使用gdb + 可执行文件名进入gdb环境,进行调试。

命令如下如:

(1)   gcc -g test.c -o test 

(2)   gdb  test

(3)  list等gdb命令;

2.出现问题的可能性:

(1)当编译时,未加 - g 选项,则进入gdb环境中执行命令会出现No symbol table is loaded.  Use the "file" command.提示;

(2)当进入gdb环境时,未加可执行文件名,也会出现No symbol table is loaded.  Use the "file" command.提示;

3.补充说明一下-g选项的作用:

在linux C中gcc编译器一章有说,-g选项的意义是“生成调试信息,该程序可以被调试器调试”
 
原文链接:https://blog.csdn.net/u010176547/article/details/12623939

No symbol table is loaded. Use the "file" command.

标签:编译   linux c   文件   提示   执行   use   lis   执行文件   list   

原文地址:https://www.cnblogs.com/hshy/p/11379405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!