From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125773 invoked by alias); 10 Oct 2018 13:44:29 -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 125575 invoked by uid 89); 10 Oct 2018 13:44:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=oh, Hx-languages-length:1254 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 ESMTP; Wed, 10 Oct 2018 13:44:27 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7196930BD9F6; Wed, 10 Oct 2018 13:44:26 +0000 (UTC) Received: from blade.nx (ovpn-117-250.ams2.redhat.com [10.36.117.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3939281867; Wed, 10 Oct 2018 13:44:26 +0000 (UTC) Received: by blade.nx (Postfix, from userid 1000) id 218E080B0905; Wed, 10 Oct 2018 14:44:25 +0100 (BST) Date: Wed, 10 Oct 2018 13:44:00 -0000 From: Gary Benson To: Simon Marchi Cc: Tom de Vries , gdb-patches@sourceware.org, Pedro Alves Subject: Re: [PATCH][gdb/testsuite] Rewrite catch-follow-exec.exp Message-ID: <20181010134423.GA23926@blade.nx> References: <20181005101122.GA23867@delia> <20181009135155.GB12668@blade.nx> <8f8ffb94-5a0c-8b2b-d541-eaacd7d1f42c@suse.de> <20181010092735.GA29557@blade.nx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00254.txt.bz2 Simon Marchi wrote: > On 2018-10-10 05:27, Gary Benson wrote: > > Tom de Vries wrote: > > > On 10/9/18 3:51 PM, Gary Benson wrote: > > > > Tom de Vries wrote: > > > > > append FLAGS " \"$binfile\"" > > > > > append FLAGS " -batch" > > > > > + append FLAGS " -ex \"target native\"" > > > > > append FLAGS " -ex \"catch exec\"" > > > > > append FLAGS " -ex \"set follow-exec-mode new\"" > > > > > > > > I'm a little confused with this part, doesn't this force the > > > > test to run on the host? > > > > > > The "target native" was an attempt to fix problems when running > > > with --target_board=native-gdbserver. Perhaps it's better to > > > bail out in that case, but I haven't yet figured out how to. Any > > > advice here? > > > > Tests that can't run remote usually bail with something like this > > at the start: > > > > if ![isnative] then { > > return > > } > > I have not looked at the test (I can do it latter today if > necessary), but this comment caught my attention. isnative is > likely not what you want to use, make sure to read the "Local vs > Remote vs Native" section of the gdb/testsuite/README file. Oh! Ok, so [target_info gdb_protocol] != ""] maybe? Thanks Simon! Gary