mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
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:
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user