Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Motohiko DOT Nagano AT jp DOT sony DOT com Message-ID: <7840643F05B5D3119B9A0000F807175702BD85DF@SJP01014> To: cygwin AT sourceware DOT cygnus DOT com Subject: RE: Can gdb debug win32 native program? Date: Fri, 30 Jun 2000 11:57:21 +0900 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.97) Content-Type: text/plain; charset="iso-2022-jp" 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 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com