From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ubell To: cygwin@cygwin.com Subject: gdb and Windows 2000 Date: Tue, 04 Sep 2001 22:36:00 -0000 Message-id: <3B95B9ED.F135CA31@mindspring.com> X-SW-Source: 2001-09/msg00170.html 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@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@VAIO ~/db/build_unix $ cat test.c main() { printf ("hello\n"); } Administrator@VAIO ~/db/build_unix $ gcc -g -o test.exe test.c Administrator@VAIO ~/db/build_unix $ ./test.exe hello Administrator@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@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@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@VAIO ~/db/build_unix $ gcc -o test.exe test.c Administrator@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/