From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26373 invoked by alias); 6 Feb 2014 20:58:21 -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 26323 invoked by uid 89); 6 Feb 2014 20:58:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com 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; Thu, 06 Feb 2014 20:58:20 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s16KwH4w002194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Feb 2014 15:58:18 -0500 Received: from host2.jankratochvil.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s16KwE67006948 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 6 Feb 2014 15:58:16 -0500 Date: Thu, 06 Feb 2014 20:58:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: "Maciej W. Rozycki" Subject: [patch] testsuite: Fix "ERROR: no fileid for" Message-ID: <20140206205814.GA18495@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00158.txt.bz2 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 320 Hi, a35cfb4007cee8cb84106412cd17f4e12f13345b is the first bad commit commit a35cfb4007cee8cb84106412cd17f4e12f13345b Author: Maciej W. Rozycki Date: Thu Oct 24 23:32:30 2013 +0100 $ runtest gdb.base/solib-disc.exp Running ./gdb.base/solib-disc.exp ... ERROR: no fileid for host1 [...] Jan --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="gdbfinish.patch" Content-length: 715 gdb/testsuite/ 2014-02-06 Jan Kratochvil Fix "ERROR: no fileid for" in the testsuite. * lib/gdb.exp (gdb_finish): Check gdb_spawn_id. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 533b81b..5c53cdf 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3708,7 +3708,8 @@ proc gdb_finish { } { global cleanfiles # Give persistent gdbserver a chance to terminate before GDB is killed. - if {[info exists gdbserver_reconnect_p] && $gdbserver_reconnect_p} { + if {[info exists gdbserver_reconnect_p] && $gdbserver_reconnect_p + && [info exists gdb_spawn_id]} { send_gdb "kill\n"; gdb_expect 10 { -re "y or n" { --azLHFNyN32YCQGCU--