Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Motohiko.Nagano@jp.sony.com
Message-ID: <7840643F05B5D3119B9A0000F807175702BD85DD@SJP01014>
To: cygwin@sourceware.cygnus.com
Subject: Can gdb debug win32 native program?
Date: Wed, 28 Jun 2000 14:27:17 +0900
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2651.97)
Content-Type: text/plain;
	charset="iso-2022-jp"

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
(gdb)

-----------------------------------------------------------------------------------------------------------

Thanks.

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













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

