From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23890 invoked by alias); 8 May 2010 12:19:56 -0000 Received: (qmail 23881 invoked by uid 22791); 8 May 2010 12:19:56 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 May 2010 12:19:51 +0000 Received: by pvg16 with SMTP id 16so194462pvg.0 for ; Sat, 08 May 2010 05:19:50 -0700 (PDT) Received: by 10.143.153.21 with SMTP id f21mr911095wfo.91.1273321189081; Sat, 08 May 2010 05:19:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.4.9 with HTTP; Sat, 8 May 2010 05:19:29 -0700 (PDT) From: Hui Zhu Date: Sat, 08 May 2010 12:19:00 -0000 Message-ID: Subject: [RFC] Set default value of detach_fork to off To: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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/msg00209.txt.bz2 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? Thanks, Hui 2010-05-08 Hui Zhu * infrun.c (detach_fork): Change default value to 0. --- infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/infrun.c +++ b/infrun.c @@ -109,7 +109,7 @@ int sync_execution = 0; static ptid_t previous_inferior_ptid; /* Default behavior is to detach newly forked processes (legacy). */ -int detach_fork = 1; +int detach_fork = 0; int debug_displaced = 0; static void