This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


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

Insight 19991116, gdbserver, fork() - always follows parent


Hi!

-> Problem description:
-----------------
Even if I explicitly set follow-fork-mode to child, insight still follows a
parent.

I've succesfully compiled "insight 19991116" but I have encountered the
following problems:
-----------------
(gdb) s
daemonize () at httpdial.c:105
105       rc=fork();
(gdb) show follow-fork-mode
Debugger response to a program call of fork or vfork is "child".
(gdb) n

Program received signal SIGSTOP, Stopped (signal).
0x804926f in daemonize () at httpdial.c:105
105       rc=fork();
(gdb) show follow-fork-mode
Debugger response to a program call of fork or vfork is "child".
(gdb) n
106       if (-1==rc) {
(gdb) p rc
$1 = 11730
-----------------




-> Platforms:
---------
Target is a Linux 2.2.13 (RH 6.0):
- gdbserver from insight-19991116
- debugging via TCP
Workstation is a Linux 2.2.13 (RH 6.0):
- running insight GUI (problem tested with insight -nw)



-> Questions:
----------
1.) Is the insight 19991116 version same as gdb 19991116 ?
2.) Can insight and/or gdb finally work with LinuxThreads? What about
gdbserver? Do new threads block when they get created ?
3.) How can I make gdb/insight/gdbserver follow a fork() && exec() ??
4.) Is it possible to compile into the programme a breakpoint (so when it is
run I could attach to it) - if yes - how to make it work with gdbserver.

-- 
best regards,
Rok Papez.

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