Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* i686-pc-mingw32 gdb: note executable format
@ 2010-10-17  0:10 Greatwolf
  2010-10-23  8:29 ` Greatwolf
  0 siblings, 1 reply; 3+ messages in thread
From: Greatwolf @ 2010-10-17  0:10 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i686-pc-mingw32 gdb: note executable format
  2010-10-17  0:10 i686-pc-mingw32 gdb: note executable format Greatwolf
@ 2010-10-23  8:29 ` Greatwolf
  2010-10-23 10:00   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Greatwolf @ 2010-10-23  8:29 UTC (permalink / raw)
  To: gdb


Does anyone have any thoughts on what the problem might be? How can I start 
debugging this issue?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i686-pc-mingw32 gdb: note executable format
  2010-10-23  8:29 ` Greatwolf
@ 2010-10-23 10:00   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2010-10-23 10:00 UTC (permalink / raw)
  To: Greatwolf; +Cc: gdb

> From: Greatwolf <gmane.greatwolf@mamber.net>
> Date: Sat, 23 Oct 2010 08:29:35 +0000 (UTC)
> 
> 
> Does anyone have any thoughts on what the problem might be? How can I start 
> debugging this issue?

Put a breakpoint on the code that issues the error message, then work
up the call stack to see the reason.

It sounds like some variant(s) of pe-coff executable format are not
recognized, but without specific details it will be impossible to find
the proper solution.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-23 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-17  0:10 i686-pc-mingw32 gdb: note executable format Greatwolf
2010-10-23  8:29 ` Greatwolf
2010-10-23 10:00   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox