From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12917 invoked by alias); 12 Jan 2011 23:23:48 -0000 Received: (qmail 12907 invoked by uid 22791); 12 Jan 2011 23:23:47 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Jan 2011 23:23:43 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id BFAE21343E; Wed, 12 Jan 2011 15:23:39 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost3.vmware.com (Postfix) with ESMTP id B694ECD959; Wed, 12 Jan 2011 15:23:39 -0800 (PST) Message-ID: <4D2E37FB.8080300@vmware.com> Date: Wed, 12 Jan 2011 23:23:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: Joel Brobecker CC: "gdb@sourceware.org" Subject: Re: Question re: testsuite, "isnative", "is_remote" etc. References: <4D2E35C5.60206@vmware.com> <20110112232003.GK2518@adacore.com> In-Reply-To: <20110112232003.GK2518@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00040.txt.bz2 Joel Brobecker wrote: >> I see a lot of tests that use "if not isnative", but that surely >> isn't right, since that test only compares the host and target board >> names. > > It seems like a dumb question, but why isn't this right? > Because host might be the same as target, and I still might be a remote board, eg. if I'm using gdbserver. I think when the "isnative" test was written, this scenario was not realistic. There were no embedded boards capable of running linux. Nowdays, "isnative" is not the opposite of "isremote". You can be both.