【发布时间】:2018-08-04 07:44:13
【问题描述】:
我正在尝试使用 gdb 调试名为 xdf 的某个程序,但是当我运行 gdb xdf 时,出现以下错误:
"/home/nealtitusthomas/X-ray_astronomy/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27/bin/xdf": not in executable format: File format not recognized
程序是符号链接的,file /home/nealtitusthomas/X-ray_astronomy/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27/bin/xdf 的输出是:
/home/nealtitusthomas/X-ray_astronomy/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27/bin/xdf: symbolic link to ../../ftools/x86_64-pc-linux-gnu-libc2.27/bin/xdf
这里gdb error not in executable format: File format not recognized给出的解决方案说是因为安装的gdb是32位版本,程序是64位的。但是,我的 gdb 安装是 64 位的。这得到以下证实:
This GDB was configured as "x86_64-linux-gnu".
【问题讨论】:
-
还有...
../../ftools/x86_64-pc-linux-gnu-libc2.27/bin/xdf是什么格式? -
这是一个 POSIX shell 脚本,ASCII 文本可执行文件
标签: linux ubuntu debugging gdb