"gdb/testsuite/lib/dwarf.exp",
"gdb/testsuite/lib/future.exp",
"gdb/testsuite/lib/gdb.exp",
-"gdb/testsuite/lib/gdbreplay-support.exp",
"gdb/testsuite/lib/gdbserver-support.exp",
"gdb/testsuite/lib/gdb-utils.exp",
"gdb/testsuite/lib/gen-perf-test.exp",
set logfile [standard_output_file_with_gdb_instance gdbreplay.cmd]
set cmd_file [open $logfile w]
puts $cmd_file $cmdline
- catch "close $cmd_file"
+ catch {close $cmd_file}
}
# Start gdbreplay using REMOTELOG as the log file. Return a list of
set portnum [get_portnum]
# Extract the protocol
- if [target_info exists gdb_protocol] {
+ if {[target_info exists gdb_protocol]} {
set protocol [target_info gdb_protocol]
} else {
set protocol "remote"