delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/24/11:17:38

From: wfs AT merit DOT edu (William Siadak)
Subject: Debugging a running process
24 Jul 1997 11:17:38 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199707241320.JAA10145.cygnus.gnu-win32@home.merit.edu>
Mime-Version: 1.0
X-Sender: wfs AT home DOT merit DOT edu
X-Mailer: Windows Eudora Light Version 1.5.2
Original-To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT merit DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


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