当前位置: 技术问答>linux和unix
gdb 不可识别的文件格式
来源: 互联网 发布时间:2017-04-30
本文导语: 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 This is free software: you are free to cha...
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
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:
...
"/home/zjr/lim-omx-1.0/limoa/test/player": not in executable format: 不可识别的文件格式
如上所示:gdb调试player这个可执行文件时(参数加了-g的),不能识别,同样其它的可执行文件也是不能识别的。
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
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:
...
"/home/zjr/lim-omx-1.0/limoa/test/player": not in executable format: 不可识别的文件格式
如上所示:gdb调试player这个可执行文件时(参数加了-g的),不能识别,同样其它的可执行文件也是不能识别的。
|
有可能是一个脚本文件,二进制文件在隐藏目录下,找到真正的二进制文件调试
|
你用file +可执行程序名 看一下,结果是啥?