# Test Framework Driver for GDB driving an external simulator
-# Copyright 1999-2016 Free Software Foundation, Inc.
+# Copyright 1999-2020 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-load_lib gdb.exp
-
proc sid_start {} {
- global verbose
-
set port [lindex [split [target_info netport] ":"] 1]
# Set a default endianness
gdb_expect {
-re ".*\[Ee\]rror.*$gdb_prompt $" {
perror "Couldn't set target for remote simulator."
- cleanup
gdb_exit
}
-re "Remote debugging using.*$gdb_prompt" {
}
timeout {
perror "Couldn't set target for remote simulator."
- cleanup
gdb_exit
}
}