]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.base/step-line.exp: Copy step-line.inp to the remote host.
authorNathan Froyd <froydnj@codesourcery.com>
Thu, 12 Nov 2009 15:15:26 +0000 (15:15 +0000)
committerNathan Froyd <froydnj@codesourcery.com>
Thu, 12 Nov 2009 15:15:26 +0000 (15:15 +0000)
* gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host.
* gdb.dwarf2/dw2-compressed.exp: Likewise.
* gdb.dwarf2/dw2-intercu.exp: Likewise.
* gdb.dwarf2/dw2-intermix.exp: Likewise.
* gdb.dwarf2/dw2-producer.exp: Likewise.
* gdb.dwarf2/mac-fileno.exp: Likewise.
* gdb.python/py-prettyprint.exp (run_lang_tests): Copy
py-prettyprint.py to the remote host.
* gdb.python/py-mi.exp: Copy py-mi.py to the remote host.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/step-line.exp
gdb/testsuite/gdb.dwarf2/dw2-basic.exp
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp
gdb/testsuite/gdb.dwarf2/dw2-producer.exp
gdb/testsuite/gdb.dwarf2/mac-fileno.exp
gdb/testsuite/gdb.python/py-mi.exp
gdb/testsuite/gdb.python/py-prettyprint.exp

index 85818875fbc13da1e66060712402a6bd45986875..d50ccc280304bd3357fef09304a0a8391e9f2117 100644 (file)
@@ -1,3 +1,16 @@
+2009-11-12  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * gdb.base/step-line.exp: Copy step-line.inp to the remote host.
+       * gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host.
+       * gdb.dwarf2/dw2-compressed.exp: Likewise.
+       * gdb.dwarf2/dw2-intercu.exp: Likewise.
+       * gdb.dwarf2/dw2-intermix.exp: Likewise.
+       * gdb.dwarf2/dw2-producer.exp: Likewise.
+       * gdb.dwarf2/mac-fileno.exp: Likewise.
+       * gdb.python/py-prettyprint.exp (run_lang_tests): Copy
+       py-prettyprint.py to the remote host.
+       * gdb.python/py-mi.exp: Copy py-mi.py to the remote host.
+
 2009-11-11  Keith Seitz  <keiths@redhat.com>
 
        * gdb.cp/classes.cc (ByAnyOtherName): Add typedef and
index 7d1ef1f8e3791a715ce75547ac7249885ef9bf07..97eb3a16b69e5780e6bae556b367c2bcba94d23f 100644 (file)
@@ -26,6 +26,7 @@ if $tracelevel then {
 
 set testfile step-line
 set srcfile ${testfile}.c
+set linefile ${testfile}.inp
 set binfile ${objdir}/${subdir}/${testfile}
 
 remote_exec build "rm -f ${binfile}"
@@ -44,6 +45,8 @@ if ![runto_main] then {
    return 0
 }
 
+set remote_linefile [remote_download host ${srcdir}/${subdir}/${linefile}]
+
 gdb_test "break f1" ".*Breakpoint 2 at .* file step-line.c.*" "break f1"
 gdb_test "continue" \
          "Continuing.*Breakpoint 2, f1 \\(i=4\\).*dummy \\(1, i\\);" \
@@ -90,4 +93,7 @@ gdb_test "next" \
 gdb_test "next" \
          ".*RETURN \\(j\\);.*" \
         "next over dummy 10"
+
+remote_file host delete ${remote_linefile}
+
 return 0
index 85dcae8976f9ad7a10e00b3aa7c8a1cc5039a069..8fc30746803d40653e818f10b9845a199386d261 100644 (file)
@@ -27,6 +27,7 @@ if {![istarget *-*-linux*]
 }
 
 set testfile "dw2-basic"
+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}
 
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
 gdb_test "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}
index 6c534454dd56f92aee44f1ab4a56a5d2ef8f1a56..b08c63579ae2486d996458c8166a5880577e17b7 100644 (file)
@@ -27,6 +27,7 @@ if {![istarget *-*-linux*]
 }
 
 set testfile "dw2-compressed"
+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}
 
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
 gdb_test "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}
index f1073f4e9d4b2557995af6af8b63c328b5e1f666..b9059b8f77c65f5c6a659014c1101d4e674acd95 100644 (file)
@@ -27,6 +27,7 @@ if {![istarget *-*-linux*]
 }
 
 set testfile "dw2-intercu"
+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}
 
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
 gdb_test "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}
index 4dc7d2919e996071901359513e5f011a9b1d02cc..29c8df836859a891e3f75832d9e052f76524b6a3 100644 (file)
@@ -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}
 
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
 gdb_test "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}
index f6245d2f0991372372fb9dc8ab6e431969254858..f679339938f7b70a5d79316de76a83aaabbbb8a0 100644 (file)
@@ -25,6 +25,7 @@ if {![istarget *-*-linux*]
 }
 
 set testfile "dw2-producer"
+set dwarf_srcfile "file1.txt"
 set srcfile ${testfile}.S
 set binfile ${objdir}/${subdir}/${testfile}.x
 
@@ -45,6 +46,10 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
 gdb_test "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}
index 71efd6a6d577f3ee32f8ecd6aedd1f5a9955d737..8b1426f818f8f2a8c2943b498e175cbf4bcd1cd1 100644 (file)
@@ -28,6 +28,7 @@ if {![istarget *-*-linux*]
 }
 
 set testfile "mac-fileno"
+set dwarf_srcfile "file1.txt"
 set srcfile ${testfile}.S
 set binfile ${objdir}/${subdir}/${testfile}.x
 
@@ -48,6 +49,10 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+set remote_dwarf_srcfile [remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}]
+
 gdb_test "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}
index 30d6f3297a1a603fb27359e26ffdf5ee9c6676cc..2387c7d65a6f8ec054e4b681933bfb3eff2c297d 100644 (file)
@@ -43,7 +43,9 @@ if {[lsearch -exact [mi_get_features] python] < 0} {
 
 mi_runto main
 
-mi_gdb_test "python execfile ('${srcdir}/${subdir}/${testfile}.py')" ""
+set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
+
+mi_gdb_test "python execfile ('${remote_python_file}')" ""
 
 mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${testfile}.c] \
   "step to breakpoint"
@@ -232,3 +234,5 @@ mi_continue_to_line \
     "step to second breakpoint"
 
 mi_varobj_update_with_type_change container int 0 "update after type change"
+
+remote_file host delete ${remote_python_file}
index b4b3776bf7d29cf0f84a8bc1593de60d100dc52a..14119f075be4b420da83c41c987ee0e46e3bbe21 100644 (file)
@@ -72,8 +72,10 @@ proc run_lang_tests {lang} {
     gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
        ".*Breakpoint.*"
     gdb_test "continue" ".*Breakpoint.*"
-    
-    gdb_test "python execfile ('${srcdir}/${subdir}/${testfile}.py')" ""
+
+    set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
+
+    gdb_test "python execfile ('${remote_python_file}')" ""
     
     gdb_test "print ss" " = a=< a=<1> b=<$hex>> b=< a=<2> b=<$hex>>"
     gdb_test "print ssa\[1\]" " = a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>"
@@ -103,6 +105,8 @@ proc run_lang_tests {lang} {
     gdb_test "print c" " = container $hex \"container\" with 2 elements = {$nl *.0. = 23,$nl *.1. = 72$nl}"
 
     gdb_test "continue" "Program exited normally\."
+
+    remote_file host delete ${remote_python_file}
 }
 
 run_lang_tests "c"