From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28794 invoked by alias); 18 Jul 2010 21:23:06 -0000 Received: (qmail 28786 invoked by uid 22791); 18 Jul 2010 21:23:05 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 18 Jul 2010 21:23:02 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6ILN0Ab020730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 18 Jul 2010 17:23:00 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6ILMvwt017767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 18 Jul 2010 17:22:59 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o6ILMvee031114 for ; Sun, 18 Jul 2010 23:22:57 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o6ILMu14031111 for gdb-patches@sourceware.org; Sun, 18 Jul 2010 23:22:56 +0200 Date: Sun, 18 Jul 2010 21:23:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: [obv] linux-nat.c: Move variable new_lp Message-ID: <20100718212256.GA31054@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) 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-07/txt/msg00271.txt.bz2 Hi, checked-in as obvious. Thanks, Jan http://sourceware.org/ml/gdb-cvs/2010-07/msg00103.html --- src/gdb/ChangeLog 2010/07/16 23:19:37 1.11996 +++ src/gdb/ChangeLog 2010/07/18 21:21:52 1.11997 @@ -1,3 +1,8 @@ +2010-07-18 Jan Kratochvil + + * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into + a more inner block. Remove its unused declaration initializer. + 2010-07-16 Thiago Jung Bauermann * NEWS: Mention support for the new ptrace interface and hardware --- src/gdb/linux-nat.c 2010/07/07 12:28:32 1.173 +++ src/gdb/linux-nat.c 2010/07/18 21:21:53 1.174 @@ -2149,7 +2149,6 @@ { int pid = GET_LWP (lp->ptid); struct target_waitstatus *ourstatus = &lp->waitstatus; - struct lwp_info *new_lp = NULL; int event = status >> 16; if (event == PTRACE_EVENT_FORK || event == PTRACE_EVENT_VFORK @@ -2213,7 +2212,10 @@ ourstatus->kind = TARGET_WAITKIND_VFORKED; else { + struct lwp_info *new_lp; + ourstatus->kind = TARGET_WAITKIND_IGNORE; + new_lp = add_lwp (BUILD_LWP (new_pid, GET_PID (lp->ptid))); new_lp->cloned = 1; new_lp->stopped = 1;