aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/boards/native-extended-gdbserver.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-07-07 08:52:39 +0000
committerYao Qi <yao@codesourcery.com>2013-07-07 08:52:39 +0000
commit7c0de7419bd4f1b4aa0bdb3c15b03615dbe3959a (patch)
tree1e844843872394e5341b2846f4452c8ae1d362b7 /gdb/testsuite/boards/native-extended-gdbserver.exp
parentb8ad3e9d18f636709b27dd6de591996e55aaec66 (diff)
downloadgdb-7c0de7419bd4f1b4aa0bdb3c15b03615dbe3959a.zip
gdb-7c0de7419bd4f1b4aa0bdb3c15b03615dbe3959a.tar.gz
gdb-7c0de7419bd4f1b4aa0bdb3c15b03615dbe3959a.tar.bz2
gdb/testsuite/
* boards/native-gdbserver.exp: Move invoke of process_multilib_options to gdbserver-base.exp. Move set_board_info 'compiler', 'gdb,noinferiorio', 'gdb,nofileio', 'gdb_server_prog' and 'gdb,predefined_tsv' to gdbserver-base.exp. Move proc ${board}_download, ${board}_upload and ${board}_file to gdbserver-base.exp. * boards/native-extended-gdbserver.exp: Likewise. * boards/native-stdio-gdbserver.exp: Likewise. * boards/gdbserver-base.exp: New file.
Diffstat (limited to 'gdb/testsuite/boards/native-extended-gdbserver.exp')
-rw-r--r--gdb/testsuite/boards/native-extended-gdbserver.exp30
1 files changed, 1 insertions, 29 deletions
diff --git a/gdb/testsuite/boards/native-extended-gdbserver.exp b/gdb/testsuite/boards/native-extended-gdbserver.exp
index d4bc06a..6a0e35f 100644
--- a/gdb/testsuite/boards/native-extended-gdbserver.exp
+++ b/gdb/testsuite/boards/native-extended-gdbserver.exp
@@ -21,6 +21,7 @@
# bash$ make check RUNTESTFLAGS="--target_board=native-extended-gdbserver"
load_generic_config "extended-gdbserver"
+load_board_description "gdbserver-base"
# By default, dejagnu makes the board remote unless the board name
# matches localhost. Force it to be NOT remote.
@@ -28,26 +29,11 @@ global board
global board_info
set board_info($board,isremote) 0
-process_multilib_options ""
-
-# The default compiler for this target.
-set_board_info compiler "[find_gcc]"
-
-# Can't do input (or output) in the current gdbserver.
-set_board_info gdb,noinferiorio 1
-
-# gdbserver does not intercept target file operations and perform them
-# on the host.
-set_board_info gdb,nofileio 1
-
set_board_info sockethost "localhost:"
# We will be using the extended GDB remote protocol.
set_board_info gdb_protocol "extended-remote"
-# Test the copy of gdbserver in the build directory.
-set_board_info gdb_server_prog "../gdbserver/gdbserver"
-
send_user "configuring for gdbserver local testing (extended-remote)\n"
# We must load this explicitly here, and rename the procedures we want
@@ -132,17 +118,3 @@ proc mi_gdb_load { arg } {
return 0
}
-
-proc ${board}_download { board host dest } {
- return $host
-}
-
-proc ${board}_file { dest op args } {
- if { $op == "delete" } {
- return 0
- }
- return [eval [list standard_file $dest $op] $args]
-}
-
-# The predefined TSVs in GDBserver.
-set_board_info gdb,predefined_tsv "\\\$trace_timestamp"