checkpoint.exp: Check for non-"target native" instead of isnative/is_remote
authorPedro Alves <palves@redhat.com>
Thu, 12 Oct 2017 18:54:34 +0000 (19:54 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 12 Oct 2017 18:54:57 +0000 (19:54 +0100)
This gets rid of a number of FAILs with
--target_board=native-extended-gdbserver.

The fact that checkpointing does not work has nothing to do with
dejagnu's native and remote concepts.  It only works with native Linux
targets because the implementation is currently baked with
linux-nat.c.

gdb/testsuite/ChangeLog:
2017-10-12  Pedro Alves  <palves@redhat.com>
    Simon Marchi  <simon.marchi@polymtl.ca>

* gdb.base/checkpoint.exp: Don't check is_remote or isnative.
Instead skip if there's any gdb_protocol set.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/checkpoint.exp

index 8ecdc5051a11c41c89d876b1accf34f1afb01f31..48769145ce897115d2ef6a8ea8d5ad9e06194c68 100644 (file)
@@ -1,3 +1,9 @@
+2017-10-12  Pedro Alves  <palves@redhat.com>
+           Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdb.base/checkpoint.exp: Don't check is_remote or isnative.
+       Instead skip if there's any gdb_protocol set.
+
 2017-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
            Pedro Alves  <palves@redhat.com>
 
index 677c3892fd7009d65708b229ed0b7ea171173ccd..b93c5f4d4a218d38b6c0e7034fa063d076b6f678 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-if { [is_remote target] || ![isnative] } then {
-    continue
-}
-
 # Until "set follow-fork-mode" and "catch fork" are implemented on
 # other targets...
 #
@@ -24,6 +20,12 @@ if {![istarget "*-*-linux*"]} then {
     continue
 }
 
+# Checkpoint support is currently implemented in the Linux native
+# target, so only works with "target native".
+if { [target_info gdb_protocol] != "" } {
+    continue
+}
+
 # Must name the source file explicitly, otherwise when driven by
 # checkpoints-ns.exp, we'd try compiling checkpoints-ns.c, which
 # doesn't exist.