This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH 05/14] gdb/testsuite: Skip a few gdb.base/skip.exp tests for remote targets
- From: Anton Kolesov <Anton dot Kolesov at synopsys dot com>
- To: Shahab Vahedi <Shahab dot Vahedi at synopsys dot com>, Luis Machado <luis dot machado at linaro dot org>, Shahab Vahedi <shahab dot vahedi at gmail dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Cc: Francois Bedard <Francois dot Bedard at synopsys dot com>
- Date: Tue, 25 Feb 2020 08:39:16 +0000
- Subject: RE: [PATCH 05/14] gdb/testsuite: Skip a few gdb.base/skip.exp tests for remote targets
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ly0DB1KYXOLSM6tkcEmjyT3G9aRjdF05USf5TObhJKM=; b=FkcU30RmTLI29fqCGnksx4LnkPWsqRIZPdns6Hxfgnk9pu569rjkWV2hrm1txXOfH1ZREvpRMAfEntsMO6Zd9ffjtGQdTkDb26ZXTIfGcaTSqDJj5onOGAP24zjd+0OEcW3UKVJI8rnYzmlK9qwWUxiA+bLL6hhsKDkOHQxmJ8Ca9cG/Fyhriwnyf3pT65m/o6rDcoejiA+I8co+K2JTrEStSqAKbMg9o9ovQ+nNlq7unVLCvHOOJxJBZRpEuGFhQqmoNtFRbuqiK4Dd1pFHsqHo4i0rrFNTdQgKjJBCbeq95J5VM79BaVQPqq/7Bn5fklTHqf1hEzuo0fW+e5KufA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nKFpGD90J1G5pOp+Aqvc1LqHp6joeJTe+PworxGyQMEdPMPcKWUV4BDViZBEaYUO5F6B7EUJ6tAp+uE+Ati09MlVKUx6WcferSoogsl0Oh88IXnSvQoHSAcx0NEwhY0UuXm73XBp4EsTirEYs/TG+AwQFFLxTXFrnmWMuVb2zqP7NMio32EE1UYrdwFPIs6W1BOetxRPyoJAjDwwT+tQqFNO6MEVTeKo+XxU6aspO/Kuos05xojmcniwywghrUgCl8VLkzy1bnzAsQZhxL3ZeJnC1t8sJyCXMwpl6Ncm+hcB6+SLztiMbfMITGVSx+ZZ7ZnTxuwHRYsFGiqj0nowzg==
- References: <20200207150003.8383-1-shahab.vahedi@gmail.com> <20200207150003.8383-6-shahab.vahedi@gmail.com> <d2f8dc3a-9609-6136-8b53-be4cc0cd3f4f@linaro.org> <ae4464f9-d387-39d1-06cf-d7597f90a86a@synopsys.com>
> >
> > This is not what i see with a standard remote gdbserver-based test. For board
> "native-gdbserver" i see all the tests passing just fine.
> >
> > GDB gets fired up and these first few checks get done without connecting to
> gdbserver. Then GDB proceeds to connect to gdbserver.
> >
> > This, again, seems to indicate there is some custom board file in your setup
> that is implementing testsuite primitives (that prepare_for_testing calls)
> differently than what is present in GDB's testsuite.
> >
> > Am i missing something?
>
> Anton, could you share your experience with us?
>
I don't remember the details, but if I read that correctly, the fix assumes
that checks are done after connecting to the target. Perhaps the behavior has
changed since the patch has been authored? We do use custom board, but I
don't think it modifies test procedures like prepare_for_testing. It does
however implement board specific open, close, and reboot procs, and for one
server we implement custom gdb_comm_leave proc to ensure that each test is run
with a new GDB instance, because GDB-instance reuse was causing troubles in
some cases:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/blob/arc-releases/dejagnu/nsim-extra.exp#L121