From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51371 invoked by alias); 17 Jun 2016 11:56:10 -0000 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 Received: (qmail 51360 invoked by uid 89); 17 Jun 2016 11:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:369 X-HELO: mail-pf0-f177.google.com Received: from mail-pf0-f177.google.com (HELO mail-pf0-f177.google.com) (209.85.192.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 17 Jun 2016 11:56:08 +0000 Received: by mail-pf0-f177.google.com with SMTP id i123so26590521pfg.0 for ; Fri, 17 Jun 2016 04:56:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ey2iufWz6wilR5XN8/8UqojK7I36ptaCu8eH5ruVpyg=; b=eqB1KOdeK6ahPMJf+nthsaeMxGtQZHWkHkiekTXY5IC4DKFUl31bJ8YEn1oAtAJJwZ /vcuz15dNK5kAMvPSKbxM5jhCKCte4LTlzLa1HjG0cviJSDPl7NvyECuWEB/1HWEmpbu fSlvr9u06rlY//GST5cYsanEwwSrFah6S7dI8VSVfe4WgDHX1FrkebHf11EpGCrl6Tqu kJkvDXIzHhBKBGe2lrQbB4kiEiaq1x7sqSp7m1cUMr7YY/RSiR2piRN8kxRRuvuvj3Jz LwtTGa5Y7lEiKuCxu+07Hio6SlVMzRvMvb6QvHnLZN9z3peneQkj8T4Ypn3NdqKOSvrz PCbg== X-Gm-Message-State: ALyK8tJUUNUPMWKePK8dTQ9WQduVwCFOMKT63heXJfIPRCab99D/HyzRP60/jLGGPaF4GQ== X-Received: by 10.98.149.10 with SMTP id p10mr2078267pfd.88.1466164566803; Fri, 17 Jun 2016 04:56:06 -0700 (PDT) Received: from E107787-LIN (gcc113.osuosl.org. [140.211.9.71]) by smtp.gmail.com with ESMTPSA id 81sm46910496pfo.74.2016.06.17.04.56.05 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 17 Jun 2016 04:56:06 -0700 (PDT) From: Yao Qi To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v4 2/3] Forget watchpoint locations when inferior exits or is killed/detached References: <1466119968-15171-1-git-send-email-palves@redhat.com> <1466119968-15171-3-git-send-email-palves@redhat.com> Date: Fri, 17 Jun 2016 11:56:00 -0000 In-Reply-To: <1466119968-15171-3-git-send-email-palves@redhat.com> (Pedro Alves's message of "Fri, 17 Jun 2016 00:32:47 +0100") Message-ID: <86oa70rpv7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00298.txt.bz2 Pedro Alves writes: > + /* Get rid of existing locations, which are no longer > + valid. New ones will be created in > + update_watchpoint, when the inferior is > + restarted. */ > + b->loc =3D NULL; Use decref_bp_location or is it intended? --=20 Yao (=E9=BD=90=E5=B0=A7)