Solaris 10上的GNU gdb 6.4无法识别文件格式

Solaris 10上的GNU gdb 6.4无法识别文件格式,gdb,solaris,elf,sunstudio,sunone,Gdb,Solaris,Elf,Sunstudio,Sunone,以下详细信息来自运行Solaris 10的Sun计算机中的会话 $ file devli devli: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped $ file a a: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped $ gdb GNU gdb 6.4 Copyright 2005 Free

以下详细信息来自运行Solaris 10的Sun计算机中的会话

$ file devli
devli: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
$ file a
a: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
$ gdb
GNU gdb 6.4
Copyright 2005 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 "sparc-sun-solaris2.10".
(gdb) file a
Reading symbols from /tmp/tnmy/a...(no debugging symbols found)...done.
(gdb) file devli
"/tmp/tnmy/devli": not in executable format: File format not recognized
(gdb) q
$ ls -l a devlisrvr
-rwxr-xr-x   1 test2    dba         1480 Dec 23 18:23 a
-rwxr-xr-x   1 test2    dba       633088 Dec 23 18:26 devli
$ uname -a ;
SunOS myhost 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
$ cat a.c
int main() {return 0;}
$ /opt/SUNONE8/SUNWspro/bin/CC -V
CC: Sun C++ 5.5 2003/03/12
$ file `which gdb`
/usr/local/bin/gdb: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
$
关于gdb为什么不能识别
devli
的文件格式的详细信息?我在网上搜索了一下,但找不到任何与这个问题有关的东西。任何指示都会有帮助


a.c
进入
a
,使用gcc构建
devli
使用Sun ONE Studio 8。

请注意,
GDB
6.4已经使用了4年。使用(当前)
GDB
7.0,您可能会运气更好

devli
可执行文件也可能已损坏(
file
只查看可执行文件的前几个字节,但
GDB
需要更多的文件内容才能自一致)。
readelf--all>/dev/null
是否报告任何警告