From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21376 invoked by alias); 13 Oct 2017 10:56:53 -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 21035 invoked by uid 89); 13 Oct 2017 10:56:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*o:Research X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Oct 2017 10:56:51 +0000 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9DAsHhA004109 for ; Fri, 13 Oct 2017 06:56:50 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2djqx364qm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 13 Oct 2017 06:56:49 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 13 Oct 2017 11:56:46 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 13 Oct 2017 11:56:43 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v9DAuh3127590814; Fri, 13 Oct 2017 10:56:43 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 10B80A404D; Fri, 13 Oct 2017 11:52:14 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DAA4CA4040; Fri, 13 Oct 2017 11:52:13 +0100 (BST) Received: from oc1027705133.ibm.com (unknown [9.152.212.164]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 13 Oct 2017 11:52:13 +0100 (BST) From: Andreas Arnez To: "Maciej W. Rozycki" Cc: Pedro Alves , Kevin Buettner , Subject: Re: [PATCH 1/2] GDB test suite: Add helper for locating core files References: <1505760152-28775-1-git-send-email-arnez@linux.vnet.ibm.com> <1505760152-28775-2-git-send-email-arnez@linux.vnet.ibm.com> <20171007094545.1bba5c51@pinnacle.lan> Date: Fri, 13 Oct 2017 10:56:00 -0000 In-Reply-To: (Maciej W. Rozycki's message of "Fri, 13 Oct 2017 10:28:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 17101310-0008-0000-0000-0000049F7D17 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17101310-0009-0000-0000-00001E31988A Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-13_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710130153 X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00347.txt.bz2 On Fri, Oct 13 2017, Maciej W. Rozycki wrote: > On Thu, 12 Oct 2017, Andreas Arnez wrote: > >> > This seems incorrect to me. "isnative" only checks >> > if the build and target _triplets_ are the same. So >> > foo-linux-gnu gdb x foo-linux-gnu gdbserver on separate >> > machine still returns isnative==true. >> >> Exactly, that's why I originally wrote is_remote instead. And I also >> wondered why the core dump tests check isnative. Does anyone run the >> testsuite on a native remote setup? > > Well, I had cases where I did that, and offhand I can find two reasons: > > 1. You want to verify `gdbserver' itself rather than GDB, in which case > you may even run it locally (i.e. where the remote target is really > `localhost'). This is the native-gdbserver setup, right? In that case the core dump tests should work... > 2. You want to test a feature (e.g. an extra register set) only your > target system has and it is too slow or unequipped to run DejaGNU > itself. ...and in this case they shouldn't. Do you remember whether you saw FAILs from corefile.exp and friends? -- Andreas