From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37434 invoked by alias); 10 Oct 2018 13:29:07 -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 37416 invoked by uid 89); 10 Oct 2018 13:29:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Oct 2018 13:29:04 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id w9ADSvuI013332 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Oct 2018 09:29:02 -0400 Received: by simark.ca (Postfix, from userid 112) id AE42D1EA70; Wed, 10 Oct 2018 09:28:57 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id C90351E519; Wed, 10 Oct 2018 09:28:55 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Oct 2018 13:29:00 -0000 From: Simon Marchi To: Gary Benson Cc: Tom de Vries , gdb-patches@sourceware.org, Pedro Alves Subject: Re: [PATCH][gdb/testsuite] Rewrite catch-follow-exec.exp In-Reply-To: <20181010092735.GA29557@blade.nx> References: <20181005101122.GA23867@delia> <20181009135155.GB12668@blade.nx> <8f8ffb94-5a0c-8b2b-d541-eaacd7d1f42c@suse.de> <20181010092735.GA29557@blade.nx> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00253.txt.bz2 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. Simon