From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30777 invoked by alias); 16 Sep 2013 14:26:35 -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 30768 invoked by uid 89); 16 Sep 2013 14:26:34 -0000 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; Mon, 16 Sep 2013 14:26:34 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8GEQQw3010859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 Sep 2013 10:26:26 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r8GEQOn2016119; Mon, 16 Sep 2013 10:26:25 -0400 Message-ID: <52371510.3010507@redhat.com> Date: Mon, 16 Sep 2013 14:26:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Yao Qi CC: Pierre Muller , "'Eli Zaretskii'" , gdb-patches@sourceware.org Subject: Re: [PATCH] Run catch-load.exp on Windows References: <1378947563-26245-1-git-send-email-yao@codesourcery.com> <83li32iwrs.fsf@gnu.org> <5231A766.8060108@codesourcery.com> <000301ceafcd$d3bbcda0$7b3368e0$@muller@ics-cnrs.unistra.fr> <5237058E.50409@codesourcery.com> In-Reply-To: <5237058E.50409@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-09/txt/msg00450.txt.bz2 On 09/16/2013 02:20 PM, Yao Qi wrote: > On 09/12/2013 11:36 PM, Pierre Muller wrote: >> I don't get, I always thought that >> when using remote debugger, the debuggee is cross-compiled >> on the machine where GDB is run, not on the remote machine where gdbserver is run. > > This is remote-target, not remote-host. Dejagnu is running on build, > test case is compiled on host, and executable is running on target. In > the case you described, host == build, so the test case is not copied. > However, in remote-host, host != build, Dejagnu has to copy source file > to the remote host first, and launch compiler on the remote host to > compile the test case. The executable can be run on the same machine or > a different one. We do have several other tests that have .h files though. $ find . -name "*.h" | wc -l 33 Sounds like we should come up with a way to make dejagnu handle them in this scenario then. (tbc, not saying you should do that yourself). > >> Thus, I always believed that there is no need to copy >> the source files to the remote machine, as GDB has the sources available. >> >> Are these assumptions wrong? > > Usually, we don't, but in remote-host testing, we have to. -- Pedro Alves