Debugging a running process

William Siadak wfs@merit.edu
Thu Jul 24 09:37:00 GMT 1997


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".



More information about the Cygwin mailing list