projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b279380
)
[gdb/testsuite] Fix gdb.dwarf2/imported-unit-bp-c.exp for remote host
author
Tom de Vries
<tdevries@suse.de>
Mon, 27 Mar 2023 11:58:10 +0000
(13:58 +0200)
committer
Tom de Vries
<tdevries@suse.de>
Mon, 27 Mar 2023 11:58:10 +0000
(13:58 +0200)
Fix test-case gdb.dwarf2/imported-unit-bp-c.exp on remote by removing a
downloaded source file.
Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
patch
|
blob
|
history
diff --git
a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
b/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
index 6bef2bdb089f79767daeb9a5cbead996682de8af..62dee7d7992de59c1c998492a4dfcb95fb3dc511 100644
(file)
--- 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" ${testfile} \
gdb_reinitialize_dir /tmp
+# 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 .*"