Mail Archives: cygwin/1997/07/24/11:17:38
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 -