* 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.
This commit is contained in:
Nathan Froyd 2009-11-12 15:15:26 +00:00
parent 79862e4574
commit f24fce7781
10 changed files with 60 additions and 3 deletions

View 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

View 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

View 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}

View 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}

View 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}

View 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}

View 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}

View 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}

View 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}

View 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"