From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27335 invoked by alias); 8 May 2010 12:31:49 -0000 Received: (qmail 27321 invoked by uid 22791); 8 May 2010 12:31:48 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 May 2010 12:31:44 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id o48CVdJI015421; Sat, 8 May 2010 14:31:39 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id o48CVcGs030274; Sat, 8 May 2010 14:31:38 +0200 (CEST) Date: Sat, 08 May 2010 12:31:00 -0000 Message-Id: <201005081231.o48CVcGs030274@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: teawater@gmail.com CC: gdb-patches@sourceware.org In-reply-to: (message from Hui Zhu on Sat, 8 May 2010 20:19:29 +0800) Subject: Re: [RFC] Set default value of detach_fork to off References: Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00210.txt.bz2 > From: Hui Zhu > Date: Sat, 8 May 2010 20:19:29 +0800 > > Hi guys, > > Looks multi-inferior is more better than before. I suggest set > default value of detach_fork to off. > Then when the user debug the multi-process program, they can debug the > inferior like multi-thread inferior. > > What do you think about it? I think we should keep the current default. While the ability to debug both sides of a fork is a nice feature to have, I think most people are only interested in debugging the process they started the debugger on. It is not unusual for programs to use system(3) to execute system binaries, and I doubt people are interested in debugging those. Typically those binaries will be stripped anyway. Setting detach_fork to off will only interfere. > > 2010-05-08 Hui Zhu > > * infrun.c (detach_fork): Change default value to 0.