Mail Archives: cygwin/1998/06/05/11:22:33
On Thu, 4 Jun 1998, Ian Collins wrote:
> Is there any way to attach gdb to a running process on gnu-win32 as you
> can on Unix?
Yes, you can, you have to get the process id of your process first (either
by using the ps program provided with GNUWin32, under the WIN32-PID column
or you can do a small program using CreateToolhelp32Snapshot(),
GetProcess32First(), GetProcess32Next() under Windows95 or via the
registry under Windows NT). The disadvantage of the ps version provided
with GNUWin32 is that it shows you only the pid for processes using the
cygwin dll. You can use gdb on (nearly) any process. I have tried on
notepad and it works. But if you do that you will not get any symbolic
information. Are you interested in doing this?
Benoit Papillault
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -