This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Debugging a running process
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>
- Subject: Debugging a running process
- From: William Siadak <wfs at merit dot edu>
- Date: Thu, 24 Jul 1997 09:20:49 -0400 (EDT)
Has anyone successfully attached and debugged a running process using GDB
under the GNU WIN32 suite ?
GDB appears to attach then it displays the message: 0x0 in ?? (). He says
he is debugging a running process, but no debug info is available.
Note : This works under SunOS but i cannot get it work under WIN32.
Here is what i've done.
source file main.c looks like :
#include <stdio.h>
main( int argc, char *argv[])
{
int t = 1;
printf("Hello world\n");
while(t)
continue;
}
compile statement :
gcc main.c -g -o xxx
fire up the program to be debugged.
start xxx.exe
get pid for xxx.exe
fire up gdb and attach to running process
start gdb
files xxx.exe
attach to pid
TIA for any help.
----------------------------------------------------------------
William Siadak email: wfs@merit.edu
Merit Network phone: (313) 936-2035
4251 Plymouth Rd. fax: (313) 647-3185
Ann Arbor, MI 48105-2785
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".