delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/05/11:22:33

From: papilla AT cs DOT tamu DOT edu (Benoit Papillault)
Subject: Re: Debugging running processes
5 Jun 1998 11:22:33 -0700 :
Message-ID: <Pine.GSO.3.96.980604192539.659E-100000.cygnus.gnu-win32@parakeet>
References: <F3332E1142DFD111873E0000F879A2BA0FACF2 AT NTMAIL>
Mime-Version: 1.0
To: Ian Collins <Ian AT kiwiplan DOT co DOT nz>
Cc: "'Gnu Mailing list'" <gnu-win32 AT cygnus DOT com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019