I am trying to debug a certain program called xdf with gdb but when i run gdb xdf, i get the following error:
"/home/nealtitusthomas/X-ray_astronomy/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27/bin/xdf": not in executable format: File format not recognized
The program is symbolically linked and the output of file /home/nealtitusthomas/X-ray_astronomy/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27/bin/xdf
is:
/home/nealtitusthomas/X-ray_astronomy/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27/bin/xdf: symbolic link to ../../ftools/x86_64-pc-linux-gnu-libc2.27/bin/xdf
The solution given here gdb error not in executable format: File format not recognized says that it is because the gdb installed is a 32 bit version and the program is 64 bit. However, my gdb installation is 64 bit. This is confirmed by the following:
This GDB was configured as "x86_64-linux-gnu".