This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2422: detach-on-fork=off forgets parent process
- From: tromey at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 2 Mar 2008 17:19:21 -0000
- Subject: gdb/2422: detach-on-fork=off forgets parent process
- Reply-to: tromey at redhat dot com
>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: