Can gdb debug win32 native program?

Motohiko.Nagano@jp.sony.com Motohiko.Nagano@jp.sony.com
Thu Jun 29 19:57:00 GMT 2000


Hello Chris.
Thanks for your reply.

My example was wrong. I explain again.

Gdb in cygwin1.1.2 can't debug many windows native program, 
for example, calc.exe, freecell.exe, iexplore.exe, mplayer2.exe, and so on.

For example, on Windows2000, gdb in cygwin1.1.2 can't debug notepad.exe and calc.exe

-----------------------------------------------------------------------------------------------------
(gdb) file notepad.exe
"/cygdrive/e/WINNT/system32/notepad.exe": not in executable format: File format
not recognized
(gdb) file calc.exe
"/cygdrive/e/WINNT/system32/calc.exe": not in executable format: File format not
 recognized
(gdb)
-----------------------------------------------------------

On Windows98, gdb in cygwin1.1.2 can debug notepad.exe, but can't debug calc.exe

-----------------------------------------------------
(gdb) file notepad
Reading symbols from notepad...(no debugging symbols found)...done.
(gdb) info target
Symbols from "/cygdrive/c/WINDOWS/notepad.exe".
Local exec file:
        `/cygdrive/c/WINDOWS/notepad.exe', file type pei-i386.
        Entry point: 0x4010cc
        0x00401000 - 0x00405000 is .text
        0x00405000 - 0x00406000 is .data
        0x00406000 - 0x00407000 is .idata
        0x00407000 - 0x0040c000 is .rsrc
        0x0040c000 - 0x0040d000 is .reloc
(gdb) file calc.exe
"/cygdrive/c/WINDOWS/calc.exe": not in executable format: File format not recogn
ized
(gdb)
-----------------------------------------------------------------------------------------------

But gdb in cygwinB20.1on Win98 can debug all windows native program.

If you know the reason for this or how to debug these windows native programs,
please tell me.

Thanks.

Motohiko Nagano<moto@xd5.so-net.ne.jp>

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


More information about the Cygwin mailing list