日期:2014-05-16  浏览次数:20794 次

gdb 不可识别的文件格式
root@zjr-virtual-machine:/home/zjr/lim-omx-1.0/limoa/test# gdb ./player
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
"/home/zjr/lim-omx-1.0/limoa/test/player": not in executable format: 不可识别的文件格式


如上所示:gdb调试player这个可执行文件时(参数加了-g的),不能识别,同样其它的可执行文件也是不能识别的。
------解决方案--------------------
你用file +可执行程序名  看一下,结果是啥?

------解决方案--------------------
有可能是一个脚本文件,二进制文件在隐藏目录下,找到真正的二进制文件调试