Use boards/local-board.exp more
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 30 Nov 2017 16:39:31 +0000 (11:39 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 30 Nov 2017 16:39:31 +0000 (11:39 -0500)
local-board.exp was introduced recently, containing the code required to
force the gdbserver boards to be non-remote (from the DejaGNU point of
view).  Other board files use the same trick of forcing isremote to 0.
Instead of doing it by hand in each file, include local-board.exp.

gdb/testsuite/ChangeLog:

* boards/cc-with-tweaks.exp: Include local-board.exp instead of
setting isremote by hand.
* boards/dwarf4-gdb-index.exp: Likewise.
* boards/fission.exp: Likewise.
* boards/stabs.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/boards/cc-with-tweaks.exp
gdb/testsuite/boards/dwarf4-gdb-index.exp
gdb/testsuite/boards/fission.exp
gdb/testsuite/boards/stabs.exp

index 5b8151d51ef257ef30425dbb3f6b493634b61e04..c1cd9669f59083f25bf110fd14fa6eb3fd91864b 100644 (file)
@@ -1,3 +1,11 @@
+2017-11-30  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * boards/cc-with-tweaks.exp: Include local-board.exp instead of
+       setting isremote by hand.
+       * boards/dwarf4-gdb-index.exp: Likewise.
+       * boards/fission.exp: Likewise.
+       * boards/stabs.exp: Likewise.
+
 2017-11-30  Pedro Alves  <palves@redhat.com>
 
        * gdb.linespec/cpls-ops.exp
index 794217cd7ea88583dda0fd5a88b8cba3c2c55982..bdffdabf685face853c09942f3283b2560850b4a 100644 (file)
@@ -30,10 +30,7 @@ if ![info exists CC_WITH_TWEAKS_FLAGS] {
 }
 
 # This is needed otherwise dejagnu tries to rsh to host "cc-with-tweaks".
-# set_board_info only sets the value if not already set.
-# find_gcc checks for this, so set early.
-unset_board_info isremote
-set_board_info isremote 0
+load_board_description "local-board"
 
 # This is based on baseboards/unix.exp.
 # At the moment we only support systems that unix.exp supports.
index 09c9c981abd4c7db6937aa562ec6c28472a6b6f2..ea4f47a4bf8cf42242050888ee22a1c321c3f2aa 100644 (file)
 # bash$ make check RUNTESTFLAGS='--target_board=dwarf4-gdb-index'
 
 # This is needed otherwise dejagnu tries to rsh to host "dwarf4-gdb-index".
-# set_board_info only sets the value if not already set.
-# find_gcc checks for this, so set early.
-unset_board_info isremote
-set_board_info isremote 0
+load_board_description "local-board"
 
 # This is based on baseboards/unix.exp.
 # At the moment we only support systems that unix.exp supports.
index 1eb89de596d47ce4a64abca64bf2ba5636d10057..4a62ed9663bfe590393747c0d0b0a689768dab90 100644 (file)
@@ -31,7 +31,5 @@ set_board_info compiler "[find_gcc]"
 # -gsplit-dwarf implies -ggnu-pubnames for gcc, it doesn't for clang.
 set_board_info debug_flags "-gdwarf-4 -gsplit-dwarf -ggnu-pubnames -fdebug-types-section -Wl,--gdb-index"
 
-# This is needed otherwise dejagnu tries to rsh to host "fission".  Blech.
-# Double blech: set_board_info only sets the value if not already set.
-unset_board_info isremote
-set_board_info isremote 0
+# This is needed otherwise dejagnu tries to rsh to host "fission".
+load_board_description "local-board"
index cbf34d2dbf5d2f745c3b57f4a4bea3d2eed66250..57de1e689217849dbdd70f82da4b5dadd340c7df 100644 (file)
@@ -39,7 +39,5 @@ set_board_info compiler "[find_gcc]"
 # Use -gstabs+ instead of -gstabs for better c++ support.
 set_board_info debug_flags "-gstabs+"
 
-# This is needed otherwise dejagnu tries to rsh to host "stabs".  Blech.
-# Double blech: set_board_info only sets the value if not already set.
-unset_board_info isremote
-set_board_info isremote 0
+# This is needed otherwise dejagnu tries to rsh to host "stabs".
+load_board_description "local-board"