From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 2C8853858C83; Mon, 27 Mar 2023 11:59:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C8853858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679918342; bh=wl93v21lDiyxeHiQTg40IBjGMqv1jlYPz1nK3nFeIcE=; h=From:To:Subject:Date:From; b=cfzIJ/nrUsn7JYRy0wYURgZ6LTFDuh4DXRimawDxm8nsBriva1KuPmWbJW67VhDs6 7QzdL3JWKosoRpBmepAd2vsstmsQtpKzbORSF/uP7Iw7T9kP3p+f0z13K4XPdJeGBo eJcxG1fCFuyUCq2guSByNU9PMoV7K++K0SvapEvM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.dwarf2/imported-unit-bp-c.exp for remote host X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: b2793801454182768d753d57225c296e1c4dbf5b X-Git-Newrev: b54e6df085a3a3c0a86d9e19419d8b4cfa3e5055 Message-Id: <20230327115902.2C8853858C83@sourceware.org> Date: Mon, 27 Mar 2023 11:59:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db54e6df085a3= a3c0a86d9e19419d8b4cfa3e5055 commit b54e6df085a3a3c0a86d9e19419d8b4cfa3e5055 Author: Tom de Vries Date: Mon Mar 27 13:58:10 2023 +0200 [gdb/testsuite] Fix gdb.dwarf2/imported-unit-bp-c.exp for remote host =20 Fix test-case gdb.dwarf2/imported-unit-bp-c.exp on remote by removing a downloaded source file. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl b/gdb/testsu= ite/gdb.dwarf2/imported-unit-bp.exp.tcl index 6bef2bdb089..62dee7d7992 100644 --- a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl +++ b/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl @@ -122,5 +122,10 @@ if { [prepare_for_testing "failed to prepare" ${testfi= le} \ =20 gdb_reinitialize_dir /tmp =20 +# Compilation on remote host downloads the source files to remote host, but +# doesn't clean them up, allowing gdb to find $srcfile, in contrast to +# non-remote host. +remote_file host delete $srcfile + # Using an absolute path is important to see the bug. gdb_test "break /tmp/${srcfile}:19" "Breakpoint .* file $srcfile, line .*"