+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.
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
# 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
-gdb_load $binfile
-
-runto_main
+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_test "break done_making_trace_files" ".*" ""
-
-gdb_test "continue" ".*" ""
-
-# tsave command would be tested here...
-
-gdb_test "continue" ".*" ""
+gdb_load $binfile
# Program has presumably exited, now target a trace file it created.