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

后端 未结 5 1739
不知归路
不知归路 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:41

    I'm not sure if this is your problem, but I faced this situation very often. The executable in the build tree, build by make/automake is not a binary, but a script, so you cannot use gdb with it. Try to install the application and change the directory, because else gdb tries to debug the script.

提交回复
热议问题