Subject: Debugging a running process
From: [email-masked] (William Siadak)

24 Jul 1997 11:17:38 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: [email-masked]
X-Mailer: Windows Eudora Light Version 1.5.2
Original-To: "[email-masked]" <[email-masked]>
Original-Sender: [email-masked]

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: [email-masked]
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
"[email-masked]" with one line of text: "help".