gdb fails to run ELF 64-bit program with “File format not recognized”

后端 未结 5 1756
不知归路
不知归路 2021-02-13 13:02

I\'m trying to use GDB to debug (to find an annoying segfault). When I run:

gdb ./filename

from the command line, I get the following error:

5条回答
  •  面向向阳花
    2021-02-13 13:45

    The executable is 64-bit (x86-64) and the debugger is a 32 bit (i686-pc-linux) build. You may need to install a 64-bit (x86-64) version of the debugger.

提交回复
热议问题