This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can gdb debug win32 native program?

On Wed, Jun 28, 2000 at 02:27:17PM +0900, wrote:
>Can anyone tell me how to use gdb to debug win32 native process?
>Using gdb in cygwin B20.1, I can debug win32 native process.
>But, using gdb in cygwin 1.1.2, I can't debug.
>For example, when I debug notepad.exe, I get this error log.
>bash-2.04$ gdb -nw
>GNU gdb 5.0
>Copyright 2000 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for details.
>This GDB was configured as "i686-pc-cygwin".
>(gdb) target exec E:\\WINNT\\notepad.exe
>"E:\WINNT\notepad.exe": not in executable format: File format not recognized

I have no problems issuing the above command or in using the more common
"file notepad.exe".

I'm not sure why you are having problems.  Possibly the only way for you to
find out would be for you to debug gdb.exe itself.


Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]