From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30738 invoked by alias); 8 Oct 2014 06:32:32 -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 30719 invoked by uid 89); 8 Oct 2014 06:32:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Oct 2014 06:32:30 +0000 Received: from svr-orw-fem-06.mgc.mentorg.com ([147.34.97.120]) by relay1.mentorg.com with esmtp id 1XbknR-00022U-F1 from Yao_Qi@mentor.com ; Tue, 07 Oct 2014 23:32:25 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.3.181.6; Tue, 7 Oct 2014 23:32:24 -0700 From: Yao Qi To: CC: Subject: [PATCH 0/3] Tweak server-kill.exp for remote target Date: Wed, 08 Oct 2014 06:32:00 -0000 Message-ID: <1412749679-27076-1-git-send-email-yao@codesourcery.com> In-Reply-To: <543404EF.4010306@redhat.com> References: <543404EF.4010306@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00135.txt.bz2 Pedro Alves writes: > gdbserver will be the parent of the tested process. So how about > tweaking the test program to do: > > int server_pid; > > int main () > { > server_pid = getppid (); > } > > and then simply read "server_pid" out of the inferior ? That is a good idea! Patch 2/3 is about this. Patch 1/3 is a clean up. Patch 3/3 is to fix a fail we've seen on target doesn't support tracepoint. *** BLURB HERE *** Yao Qi (3): Clean up server-kill.exp Get GDBserver pid on remote target Use command "monitor set debug 0" to check the connection gdb/testsuite/gdb.server/server-kill.c | 10 +++++++++- gdb/testsuite/gdb.server/server-kill.exp | 23 +++++++++++++++++------ 2 files changed, 26 insertions(+), 7 deletions(-) -- 1.9.3