Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-22-2006, 09:26 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Unhappy 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
Old 02-23-2006, 02:36 AM   #2
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Recompile gdb.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 07:02 AM
suid bit on an executable is ignored during boot process. rob_of_ownsboro Linux - General 3 11-22-2005 01:34 PM
Which version of 32 bit redhat will install on IBM xSeries 366 (64 bit)? Hello123 Linux - Hardware 2 09-14-2005 06:50 AM
ELF 32-bit LSB executable how to run vinsky2002 Linux - Software 1 01-12-2005 03:07 AM
gdb .. looking for 32 bit gdb.. for ia64 suse.. nkshirsagar SUSE / openSUSE 0 12-09-2004 04:02 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration