From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5103 invoked by alias); 17 Oct 2010 00:10:19 -0000 Received: (qmail 5092 invoked by uid 22791); 17 Oct 2010 00:10:14 -0000 X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=BAYES_50,SPF_HELO_PASS,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Oct 2010 00:10:09 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P7GpA-0002fE-Jm for gdb@sources.redhat.com; Sun, 17 Oct 2010 02:10:04 +0200 Received: from c-67-188-178-11.hsd1.ca.comcast.net ([67.188.178.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Oct 2010 02:10:04 +0200 Received: from gmane.greatwolf by c-67-188-178-11.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Oct 2010 02:10:04 +0200 To: gdb@sources.redhat.com From: Greatwolf Subject: i686-pc-mingw32 gdb: note executable format Date: Sun, 17 Oct 2010 00:10:00 -0000 Message-ID: User-Agent: Xnews/2006.08.24 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00067.txt.bz2 Hi, I'm having an issue using gdb and I'm trying to track down the root cause of it. When debugging some executable files under this platform, gdb has trouble debugging certain executable formats. For example, try loading gdb notepad.exe under windows 7. gdb will give an error message: not in executable format: File format not recognized Similarly, executables compiled and linked with digital mars C++ tools have the same problems as well as borland object files that are linked with the unilinker.exe. The demo program from pelib also fails to load under gdb. All in these cases gdb issues the same error message. The error message of course doesn't make any sense, how could the binary not be a valid executable format?? The windows loader certainly has no issues loading and running it. Other debuggers and disassemblies have no problems opening/attaching to it. On a similar note, using objdump on those above cases gives a similar error: File format not recognized Any ideas what the issue might be? Note that in all cases I've checked to make sure I was't mixing 64-bit executes with 32-bit gdb and visa versa. I have a feeling it's probably an issue with binutils bfd. Thanks