LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   gdb won't recognize 64 bit executable on my RedHat 64 bits box (https://www.linuxquestions.org/questions/programming-9/gdb-wont-recognize-64-bit-executable-on-my-redhat-64-bits-box-418356/)

cerniagigante 02-22-2006 08:26 AM

gdb won't recognize 64 bit executable on my RedHat 64 bits box
 
Hi, I am fiddling around with a new Dell Precision 670 which came with a preinstalled RedHat on it. I'm not very happy with this installation, but for lack of time, I am stuck with it for the moment.

The installation is quite confusing as everything with lib in it comes in pairs: lib and lib64. It seems also that a lot of the code is 32 bits (for example the X system seems to be running the old 32 bit libraries).

On the other hand I compiled code with the lib64 and it seems to be running smoothly, albeit I can't debug it.

This is what gdb replies to me:

This GDB was configured as "i386-redhat-linux-gnu"..."/home/omar/FEMA/1d/heat_semilin": not in executable format: File format not recognized

So most likely, I need to reconfigure gdb for it recognize the 64 bit executables. I would need something like "x86-64" instead of "i386" in the above line...

Any idea? (Please email me, I'm not very often here.)

Regards, OL

Artanicus 02-23-2006 01:36 AM

Recompile gdb.


All times are GMT -5. The time now is 01:44 AM.