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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B95B9ED.F135CA31@mindspring.com> Date: Tue, 04 Sep 2001 22:36:46 -0700 From: Michael Ubell X-Mailer: Mozilla 4.73 [en]C-{C-UDP; EBM-SONY1} (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: gdb and Windows 2000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Has anyone gotten gdb to work on Windows 2000 (with cygwin, of course)? Below is a simple program which runs but not under gdb. I have downloaded and built gdb but cannot debug it either. I can run the version of gdb shipped with cygwin, but it has no symbols. See below: Administrator AT VAIO ~/gdb-5.0/gdb $ uname -a CYGWIN_NT-5.0 VAIO 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown Administrator AT VAIO ~/db/build_unix $ cat test.c main() { printf ("hello\n"); } Administrator AT VAIO ~/db/build_unix $ gcc -g -o test.exe test.c Administrator AT VAIO ~/db/build_unix $ ./test.exe hello Administrator AT VAIO ~/db/build_unix $ gdb -nw ./test.exe GNU gdb 5.0 (20010428-1) Copyright 2001 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) run Starting program: /home/Administrator/db/build_unix/./test.exe gdb: unknown target exception 0xc0000135 at 0x77fb0ff4 Program received signal ?, Unknown signal. Program received signal SIGSEGV, Segmentation fault. Program received signal SIGSEGV, Segmentation fault. Program exited with code 0200. You can't do that without a process to debug. (gdb) quit Administrator AT VAIO ~/db/build_unix $ gdb -nw ~/gdb-5.0/gdb/gdb.exe GNU gdb 5.0 (20010428-1) Copyright 2001 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) run Starting program: /home/Administrator/gdb-5.0/gdb/gdb.exe gdb: unknown target exception 0xc0000135 at 0x77fb0ff4 Program received signal ?, Unknown signal. Program received signal SIGSEGV, Segmentation fault. Program received signal SIGSEGV, Segmentation fault. Program exited with code 0200. You can't do that without a process to debug. (gdb) quit Administrator AT VAIO ~/db/build_unix $ gdb -nw /usr/bin/gdb GNU gdb 5.0 (20010428-1) Copyright 2001 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"...(no debugging symbols found)... (gdb) run -nw Starting program: /usr/bin/gdb.exe -nw GNU gdb 5.0 (20010428-1) Copyright 2001 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) quit Program exited normally. (gdb) quit Administrator AT VAIO ~/db/build_unix $ gcc -o test.exe test.c Administrator AT VAIO ~/db/build_unix $ gdb -nw ./test.exe GNU gdb 5.0 (20010428-1) Copyright 2001 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) run Starting program: /home/Administrator/db/build_unix/./test.exe gdb: unknown target exception 0xc0000135 at 0x77fb0ff4 Program received signal ?, Unknown signal. Program received signal SIGSEGV, Segmentation fault. Program received signal SIGSEGV, Segmentation fault. Program exited with code 0200. You can't do that without a process to debug. (gdb) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/