This is the mail archive of the gdb-prs@sourceware.org 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]
Other format: [Raw text]

gdb/2422: detach-on-fork=off forgets parent process


>Number:         2422
>Category:       gdb
>Synopsis:       detach-on-fork=off forgets parent process
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 02 17:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey <tromey@redhat.com>
>Release:        cvs head as of Feb 29 2008
>Organization:
>Environment:
x86 FC-6
>Description:
As in PR 2420 and my subsequent report (I think PR 2421,
but gnats hasn't run the queue yet), I am trying to debug
gcc and its subprocess cc1.  I set detach-on-fork=off and
follow-fork-mode=child.

I've applied my fix for the 2420 crash.

After gdb follows cc1, I can no longer switch back to
the parent process, gcc.  "info forks" says there are
no forks.

I expected that gdb would remain attached to both
processes.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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