Mail Archives: cygwin/2001/09/05/01:37:06
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/
- Raw text -