Mail Archives: cygwin/2002/05/24/01:03:51
On Fri, May 24, 2002 at 05:32:22AM +0100, Conrad Scott wrote:
>I'm trying to use strace to attach to a running process (strace -p pid) but
>I'm not getting anywhere.
>
>To be precise, I get no output until the target process exits, when I get,
>for example, 'Attached to pid 2236 (windows pid 2156)', and no strace
>output.
>
>If I strace strace doing this, I get:
>
>$ strace strace -p 2156
>**********************************************
>Program name: C:\cygwin\bin\strace.exe (324)
>App version: 1003.10, api: 0.51
>DLL version: 1003.10, api: 0.51
>DLL build: 2002-02-25 11:14
>OS version: Windows NT-5.0
>Date/Time: 2002-05-24 05:20:43
>**********************************************
> 542 7126 [unknown (0x90C)] strace 324 sig_send: pid 2156, signal -1,
>its_me 0
> 148 7274 [unknown (0x90C)] strace 324 getsem: pid 2156, ppid 1860, wait
>1000, initializing 0
> 233 7507 [unknown (0x90C)] strace 324 sig_send: Not waiting for
>sigcomplete. its_me 0 signal -1
> 85 7592 [unknown (0x90C)] strace 324 sig_send: returning 0 from
>sending signal -1
>Attached to pid 2156 (windows pid 2420)
>
>The strace output appears as soon as I run the strace command; the 'Attached
>...' message appears once the target dies.
>
>Am I missing something? (presumably something obvious . . .) or are the
>gremlins having a party in my machine?
>
>Perplexed and seeking solace,
strace only works on cygwin processes. strace itself is not a cygwin
process. So, "strace strace" is a no-op.
cgf
--
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 -