From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21529 invoked by alias); 16 Sep 2014 10:45:11 -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 21492 invoked by uid 89); 16 Sep 2014 10:45:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 16 Sep 2014 10:45:07 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8GAj5H0020428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 16 Sep 2014 06:45:05 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8GAj3Px028236; Tue, 16 Sep 2014 06:45:04 -0400 Message-ID: <541814AE.3000505@redhat.com> Date: Tue, 16 Sep 2014 10:45:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Gary Benson , Doug Evans CC: gdb-patches Subject: Re: [PATCH 3/9 v7] Introduce target_{stop,continue}_ptid References: <5412DEB5.6020706@redhat.com> <21523.9502.168492.803068@ruffy2.mtv.corp.google.com> <54132B55.9000108@redhat.com> <21523.12189.134570.770432@ruffy2.mtv.corp.google.com> <5413305B.6020402@redhat.com> <21523.13993.986533.615240@ruffy2.mtv.corp.google.com> <54133939.70801@redhat.com> <20140915100736.GA13503@blade.nx> <20140916094914.GB32511@blade.nx> In-Reply-To: <20140916094914.GB32511@blade.nx> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-09/txt/msg00522.txt.bz2 On 09/16/2014 10:49 AM, Gary Benson wrote: > > c) The bug is that in this code in linux-nat.c: > > /* Pause all */ > target_stop (ptid); > > memcpy (s, "qTfSTM", sizeof ("qTfSTM")); > s[sizeof ("qTfSTM")] = 0; > > agent_run_command (pid, s, strlen (s) + 1); > > the "target_stop" should actually be a call to whatever > target_stop_ptid is renamed to. > > One final thing--and I may now be going over something that has been > discussed before--could target_continue_ptid be better renamed as > target_resume_no_signal? It seems to sit better alongside GDB's > target_resume. No, the "resume" interface can "continue" and "step" (and on gdbserver, stop/interrupt too), but target_continue_ptid _only_ continues. Thanks, Pedro Alves