This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

attach in gdb


W95, b19.1
Did what is needed in gdb.info:

BASH.EXE-2.01$ ps
TTY   PID  PPID  PGID  WIN32-PID  UID    STIME COMMAND
-1   1000  1000  1000    -117681  500 11:29:09
      H:\CYGNUS\B19\H-I386-CYGWIN32\BIN\BASH.EXE 
-1   1001  1000  1001   -77041  500 11:29:46 
      H:\CYGNUS\B19\H-I386-CYGWIN32\BIN\GDB.EXE 
-1  1011  1000  1011   -977917  500 11:49:37 
      H:\INGRES\BIN\SYSMONITOR.EXE
-1   1013     1  1011     -84325  50011:49:37 
      H:\INGRES\BIN\SYSMODFUNC.EXE
-1   1015  1000  1015     -93505  500 11:49:51 
      H:\CYGNUS\B19\H-I386-CYGWIN32\BIN\PS.EXE

BASH.EXE-2.01$ jobs -l
[1]-  1001 Running                 gdb creatdb &
[2]+  1011 Running                 ./creatdb demo &

Strange that sysmonitor and sysmodfunc are not displayed. These are 
called with
execv(vect[0], vect);
in creatdb.exe and both contain a 
sleep (300);

(gdb) file sysmonitor
Reading symbols from sysmonitor ...done.
(gdb) attach 1011
Can't attach to process.

What am I doing wrong?
Is there another way to debug a process called with execv?
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]