gdb/testsuite/

* boards/native-gdbserver.exp (${board}_upload): New.
	* boards/native-stdio-gdbserver.exp (${board}_upload): New.
	* gdb.trace/tfile.exp: Don't check 'gdb,nofileio'.
	Execute tfile on remote target.
	Copy trace file from target to host.
This commit is contained in:
Yao Qi
2012-08-23 14:01:42 +00:00
parent dc82f37bb7
commit 61b1d75968
4 changed files with 23 additions and 16 deletions

View File

@ -1,3 +1,11 @@
2012-08-23 Yao Qi <yao@codesourcery.com>
* boards/native-gdbserver.exp (${board}_upload): New.
* boards/native-stdio-gdbserver.exp (${board}_upload): New.
* gdb.trace/tfile.exp: Don't check 'gdb,nofileio'.
Execute tfile on remote target.
Copy trace file from target to host.
2012-08-22 Joseph Myers <joseph@codesourcery.com>
* gdb.arch/thumb-bx-pc.S: New file.

View File

@ -80,6 +80,10 @@ proc ${board}_download { board host dest } {
return $host
}
proc ${board}_upload {dest srcfile args} {
return $srcfile
}
proc ${board}_file { dest op args } {
if { $op == "delete" } {
return 0

View File

@ -142,6 +142,10 @@ proc ${board}_download { board host dest } {
return $host
}
proc ${board}_upload {dest srcfile args} {
return $srcfile
}
proc ${board}_file { dest op args } {
if { $op == "delete" } {
return 0

View File

@ -22,12 +22,6 @@
load_lib "trace-support.exp";
if [target_info exists gdb,nofileio] {
verbose "Skipping tfile.exp because of no fileio capabilities."
continue
}
gdb_exit
gdb_start
standard_testfile
@ -41,19 +35,16 @@ gdb_reinitialize_dir $srcdir/$subdir
# Make sure we are starting fresh.
remote_file host delete basic.tf
remote_file host delete error.tf
remote_file target delete basic.tf
remote_file target delete error.tf
remote_exec target "$binfile"
# Copy tracefile from target to host through build.
remote_download host [remote_upload target basic.tf] basic.tf
remote_download host [remote_upload target error.tf] error.tf
gdb_load $binfile
runto_main
gdb_test "break done_making_trace_files" ".*" ""
gdb_test "continue" ".*" ""
# tsave command would be tested here...
gdb_test "continue" ".*" ""
# Program has presumably exited, now target a trace file it created.
gdb_test "target tfile basic.tf" "Created tracepoint.*" "target tfile"