From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126215 invoked by alias); 22 Aug 2016 18:12:49 -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 125465 invoked by uid 89); 22 Aug 2016 18:12:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy= X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Aug 2016 18:12:47 +0000 Received: by simark.ca (Postfix, from userid 112) id 3A3FB1E763; Mon, 22 Aug 2016 14:12:45 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 146401E192; Mon, 22 Aug 2016 14:12:44 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 22 Aug 2016 18:12:00 -0000 From: Simon Marchi To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] gdbserver_spawn "" rather than gdbserver_spawn ${binfile} In-Reply-To: <1471877845-1158-1-git-send-email-yao.qi@linaro.org> References: <1471877845-1158-1-git-send-email-yao.qi@linaro.org> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.0 X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00217.txt.bz2 On 2016-08-22 10:57, Yao Qi wrote: > --- a/gdb/testsuite/gdb.server/connect-stopped-target.exp > +++ b/gdb/testsuite/gdb.server/connect-stopped-target.exp > @@ -44,7 +44,7 @@ proc do_test {nonstop} { > > gdb_test "set non-stop $nonstop" > > - set res [gdbserver_spawn ${binfile}] > + set res [gdbserver_spawn ""] You could make gdbserver_spawn have a default empty argument, so you don't have to keep the empty string here.