用于Windows进程的Cygwin转储程序?

时间:2012-05-18 01:28:10

标签: cygwin coredump procdump

Cygwin包含一个程序dumper.exe

  

dumper实用程序可用于创建运行Windows的核心转储   过程

Usage: dumper [OPTION] FILENAME WIN32PID

Dump core from WIN32PID to FILENAME.core

然而,它似乎只适用于Cygwin进程

$ ps -Ws | grep calc
   3880 ?        20:22:02 C:\Windows\System32\calc.exe

$ dumper calc-dump 3880
Cannot attach to process #3880, error 50

我一直在使用ProcDump一段时间了,但我想转到Cygwin包中包含的程序。

1 个答案:

答案 0 :(得分:1)

事实证明dumper.exe 与Windows进程一起使用,但只有 32位进程

$ C:/Windows/SysWOW64/calc.exe &
[1] 3660

$ dumper calc 3660 &
[2] 3500

$ ls -l
total 18688
-rw-r--r--+ 1 Steven None 19071028 Jun  7 20:38 calc.core