LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 910|回复: 4

I am so sorry to ask such foolish question

[复制链接]
发表于 2005-12-21 09:32:11 | 显示全部楼层 |阅读模式
Hi guys
   I have installed MythtTV so successfully, but I encounted a very puzzle problem.So I need come up with this problem for sharing.I want to debug a program name mythfilldatabase  in MythTV ,Then I done like this:
$gdb mythfilldatabase
(...Omit inimportant info)
(gdb) run mythfilldatabase
Starting program: /home/mythtv-0.17/programs/mythfilldatabase/mythfilldatabase mythfilldatabase
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled]
[New Thread -162691392 (LWP 3813)]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...illegal option: 'mythfilldatabase' (use --help)

Program exited with code 0377.
(gdb)

(gdb) list
No symbol table is loaded.  Use the "file" command.
So my question is that what is mean with this error
Thanks and cheers ,Any response give greatly appreciate
发表于 2005-12-21 10:29:45 | 显示全部楼层
编译的时候没加-g?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-21 11:30:59 | 显示全部楼层
I did not know weather add "g" option to make. I just type:confiugre -->qmake mythtv.pro-->make , What do your meaning for "add g option "? How can I to do what your said?
Thanks
回复 支持 反对

使用道具 举报

发表于 2005-12-21 11:40:45 | 显示全部楼层
加g就是通知gcc在编译时产生调试所需的符号表,这要在Makefile中的CFLAGS中加,最好还要去掉gcc的优化选项-O2什么的,建议你研究一下linux下的基础编程知识。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-21 14:27:32 | 显示全部楼层
Thanks ,With respect,I think that I currently needn't to resach Based-Programming in Linux deeply. Even thought thank your such detail help, I do not agree with your poinview. Maybe  you are expert on Linux-Programming, especially be  good at progrrmming NOT other aspect, But ....
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表