This is the mail archive of the
mailing list for the Cygwin project.
note about how-to-debug-cygwin.txt
- From: Ralf Habacker <ralf dot habacker at freenet dot de>
- To: cygwin at cygwin dot com
- Date: Sun, 28 May 2006 22:59:35 +0200
- Subject: note about how-to-debug-cygwin.txt
-----BEGIN PGP SIGNED MESSAGE-----
In the how-to-debug-cygwin.txt there is listed how to run application
using strace in gdb:
To debug this scenario, do something like this:
bash$ gdb -nw yourapp.exe
(gdb) dll cygwin1
(gdb) l dll_crt0_1
(gdb) b <<first line in the function>>
(gdb) set strace.active=1
According to winsup/cygwin/include/sys/strace.h the class member active
is known now as _active.
I have tried to get this running in gdb (cvs), but there is no output in
gdb. May be I have understand something wrong and the output is printed
somewhere else, but the sources tell me that strace uses
OutputDebugString(), which should be catched by gdb.
Or does gdb print it only when the application is currently running in
gdb and not in the gdb prompt ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html