LinuxSir.cn,穿越时空的Linuxsir!

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

我的gdb出了问题了,不知道如何解决,帮忙看看。

[复制链接]
发表于 2007-7-5 08:03:59 | 显示全部楼层 |阅读模式
mkdir c
cd c
touch hello.c
vim hello.c
-------------------------------------------------------------------------------------------------
1 //gdb测试程序
  2
  3 #include<stdio.h>
  4
  5 int main (void)
  6 {
  7    printf("hello welcome to the linux world!\n");
  8
  9    return 0;
10 }
11
-------------------------------------------------------------------------------------------------
gcc hello.c -o hello -g
ls
hello hello.c
-------------------------------------------------------------------------------------------------
file hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.1, dynamically linked (uses shared libs), not stripped
-------------------------------------------------------------------------------------------------
gdb
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
(gdb)
------------------------------------------------------------------------------------------------
file hello
BFD: /home/fender/programming/c/hello: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6]
"/home/fender/programming/c/hello": not in executable format: 不可识别的文件格式
(gdb)
------------------------------------------------------------------------------------------------
上面就是整个的过程

我以前也是这样做的

但是昨天发现不行了

不知道是什么原因

谁来帮帮我谢谢了先

我在百度上找了一下发现还没有相关的问题

只有一个人说gdb不工作,是file source.c

其他就没有人说自己的gdb有问题

我觉得gdb是gnu的重要项目

不太可能有问题

最近我的操作系统升级过

apt-get dist-upgrade

升级以后发现不能进入桌面

后来dpkg-reconfigure xserver-xorg

不显卡的驱动改成vesa就好了

原来的驱动列表里面好像没有intel升级以后才有

但是用intel也不能进入桌面

后来就改成了vesa

我主要的硬件和系统如下:

Pocessor:Intel PD-915(EM64)
     
Motherboad:Intel D946gzis
     
RAM:1.0G/667Mz
   
HD:160G/8M  
     
OS:Windows XP 32 + Debian Linux etch amd64
      
是不是升级出现的问题呢?
发表于 2007-7-5 08:38:23 | 显示全部楼层
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425838

升级到 sid 上的 6.6 就好了。我看了看这个 6.6 所依赖的 glibc 仍然是 2.3.6 的,因此应该不会导致 toolchain 的升级。你可以在你的 etch 上直接安装这个包。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-5 12:48:30 | 显示全部楼层
谢谢你了

我仔细看看你给的网页
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-5 13:00:06 | 显示全部楼层
你能说说怎么直接安装吗?

还有是具体哪个包,我的英文不是很好。

先谢谢你。
回复 支持 反对

使用道具 举报

发表于 2007-7-5 20:59:23 | 显示全部楼层
http://debian.cn99.com/debian/po ... .6.dfsg-1_amd64.deb

把这个下载下来,用
# dpkg -i gdb_6.6.dfsg-1_amd64.deb
来安装
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-6 11:28:22 | 显示全部楼层
哈哈哈哈

搞定了

以后一定好好学英文

谢谢你了
回复 支持 反对

使用道具 举报

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

本版积分规则

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