PR symtab/11942
[binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-intermix.exp
index eeaa1590d22c80eea0c4e085e61418083c87478d..4022cce6dc1b14468d2a830198fb0b605f722bf6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2005, 2007, 2008 Free Software Foundation, Inc.
+# Copyright 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -27,6 +27,7 @@ if {![istarget *-*-linux*]
 }
 
 set testfile "dw2-intermix"
+set dwarf_srcfile "file1.txt"
 set srcfile ${testfile}.S
 set binfile ${objdir}/${subdir}/${testfile}.x
 
@@ -47,6 +48,10 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
-gdb_test "set listsize 1" ""
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
+gdb_test_no_output "set listsize 1"
 gdb_test "list func_cu1" "4\[ \t\]+File 1 Line 4"
 gdb_test "ptype func_cu1" "type = int \\(\\)"
+
+remote_file host delete ${remote_dwarf_srcfile}