This is the mail archive of the
cygwin
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-----
Hash: SHA1
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) run
(gdb) set strace.active=1
(gdb) continue
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 ?
Regards
Ralf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEeg83oHh+5t8EXncRAnZtAJ0XI2URyUgm9n9nMxpjQWoXi5baJACdHFqP
eNp6sUbJ8SiueHKsXnf76Vs=
=k0v+
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/