Message ID | yjt2a971tmpy.fsf@ruffy.mtv.corp.google.com |
---|---|
State | New, archived |
Headers |
Received: (qmail 29525 invoked by alias); 18 Aug 2014 23:14:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-patches.sourceware.org> List-Unsubscribe: <mailto:gdb-patches-unsubscribe-##L=##H@sourceware.org> List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 29513 invoked by uid 89); 18 Aug 2014 23:14:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f73.google.com Received: from mail-oa0-f73.google.com (HELO mail-oa0-f73.google.com) (209.85.219.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 18 Aug 2014 23:14:04 +0000 Received: by mail-oa0-f73.google.com with SMTP id g18so1316840oah.4 for <gdb-patches@sourceware.org>; Mon, 18 Aug 2014 16:14:02 -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:subject:date:message-id:mime-version :content-type; bh=69RG2qoiDxl7Y9iuSuSG5eUR4DYVL0f/efd8u0QAsmA=; b=FoZByBbFfTmK7gBxPxaD1D/yvYuMYULZyNZL4K18hM/JfAwLl9E9VQgTl0p56SWnrR QSNe9fsc9O+P6Pqfz+l2naj+JMZ+dao0NKV5vYE4BIpCDUxODt+RMF5mC7rjxFVmnjME Y5nDfox+1wO/bN2AEkzfiSI2RmJBLgEPg1RWfiE4Oaz/Q+OWw2Y/p9SaEgx/kEbJvx14 0qYzMHy0Ogz76jc0DPnPsJp+uUaC26Mq6D96Omet93YuG9+xw5jJPZrYqcEWVOTRQycA 6e5CukGd6kaN4dtLELRXHfZyvLnaYcM8Sq+cJKMJv1jUPh5TiTIriz7DYN79XlULDqJO 1+OA== X-Gm-Message-State: ALoCoQnIltZTeE3SXP5BGgkNGu8e2puI4B/3j0XzTHtdjyWCOQDeJl7PUTGCbM1YP0tBxSYm02vgX1jJxdtmIZu/etMF4Dg9obSwn/znZg1mNTEu7Hhyb0UsgK+bntWwstxCqlK4NHtb X-Received: by 10.182.47.136 with SMTP id d8mr18984666obn.10.1408403642673; Mon, 18 Aug 2014 16:14:02 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id l23si153243yhg.1.2014.08.18.16.14.02 for <gdb-patches@sourceware.org> (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Aug 2014 16:14:02 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTPS id 66CF55A45A6 for <gdb-patches@sourceware.org>; Mon, 18 Aug 2014 16:14:02 -0700 (PDT) From: Doug Evans <dje@google.com> To: gdb-patches@sourceware.org Subject: [PATCH] misc cleanups to linux_nat_close Date: Mon, 18 Aug 2014 16:14:01 -0700 Message-ID: <yjt2a971tmpy.fsf@ruffy.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes |
Commit Message
Doug Evans
Aug. 18, 2014, 11:14 p.m. UTC
Hi. I think this falls under obvious, but in case anyone wants to comment ... 2014-08-18 Doug Evans <dje@google.com> * linux-nat.c (linux_nat_close): Don't pass NULL for "this". Pass NULL instead of 0 for context pointer.
Comments
On 08/19/2014 12:14 AM, Doug Evans wrote: > Hi. > > I think this falls under obvious, but in case anyone wants to comment ... Yeah, it was one of those "to fix later" things, while to_close didn't gain a self pointer: https://sourceware.org/ml/gdb-patches/2014-01/msg00424.html Thanks for doing this.
On Tue, Aug 19, 2014 at 9:53 AM, Pedro Alves <palves@redhat.com> wrote: > On 08/19/2014 12:14 AM, Doug Evans wrote: >> Hi. >> >> I think this falls under obvious, but in case anyone wants to comment ... > > Yeah, it was one of those "to fix later" things, while to_close didn't > gain a self pointer: > > https://sourceware.org/ml/gdb-patches/2014-01/msg00424.html > > Thanks for doing this. > > -- > Pedro Alves > >> >> 2014-08-18 Doug Evans <dje@google.com> >> >> * linux-nat.c (linux_nat_close): Don't pass NULL for "this". >> Pass NULL instead of 0 for context pointer. >> >> diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c >> index 1e8991d..0898442 100644 >> --- a/gdb/linux-nat.c >> +++ b/gdb/linux-nat.c >> @@ -4813,8 +4813,8 @@ static void >> linux_nat_close (struct target_ops *self) >> { >> /* Unregister from the event loop. */ >> - if (linux_nat_is_async_p (NULL)) >> - linux_nat_async (NULL, NULL, 0); >> + if (linux_nat_is_async_p (self)) >> + linux_nat_async (self, NULL, NULL); >> >> if (linux_ops->to_close) >> linux_ops->to_close (linux_ops); Pushed.
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 1e8991d..0898442 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4813,8 +4813,8 @@ static void linux_nat_close (struct target_ops *self) { /* Unregister from the event loop. */ - if (linux_nat_is_async_p (NULL)) - linux_nat_async (NULL, NULL, 0); + if (linux_nat_is_async_p (self)) + linux_nat_async (self, NULL, NULL); if (linux_ops->to_close) linux_ops->to_close (linux_ops);