Using: Fedora Core 4
Hardware: Dual 2.7GHZ Apple G5
Problem: Debugging 64-bit compiled applications fails with message
"""
This GDB was configured as "ppc-redhat-linux-gnu"..."programToDebug":
not in executable format: File format not recognized
"""
$ gdb --version
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions. There is
absolutely no warranty for GDB. Type "show warranty" for details. This
GDB was configured as "ppc-redhat-linux-gnu".
Trying to install 64 bit version using yum fails to locate an
appropriate version
Information need to recreate problem.
Example:
# Example Hello World C++ Program
#include <iostream>
using namespace std;
void SayHelloWorld(void) {cout << "Hello World!" << endl;}
int main (void)
{
SayHelloWorld();
Return 0;
}
# Makefile
all: hello hello64
hello: hello.cpp
g++ -Wall -o $@ hello.cpp
hello64: hello.cpp
g++ -Wall -o $@ hello.cpp -m64
# EOF