]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb.base/watch-cond-infcall.exp: Don't run if target doesn't support infcalls
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 30 May 2017 09:24:52 +0000 (11:24 +0200)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 30 May 2017 09:24:52 +0000 (11:24 +0200)
This test requires calling a function in the inferior, and therefore it
doesn't make sense to run it if the target doesn't support calling
functions from GDB.

gdb/testsuite/ChangeLog:

* gdb.base/watch-cond-infcall.exp: Don't run if target doesn't
support function calls from GDB.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watch-cond-infcall.exp

index c16f2017f5c6a662cbc1cfa0192b18da97d0925c..cb1d8ecea106cec0bdaec0de5fd115423ab3154c 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-30  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gdb.base/watch-cond-infcall.exp: Don't run if target doesn't
+       support function calls from GDB.
+
 2017-05-21  Tom Tromey  <tom@tromey.com>
 
        PR rust/21466:
index c2d966998816abb51a3878653d023310052e4a75..df3b19df05cf47d44a43ff55cfdcef2beb686d73 100644 (file)
 
 standard_testfile
 
+if [target_info exists gdb,cannot_call_functions] {
+    unsupported "can not call functions"
+    return
+}
+
 if { [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] } {
     untested "failed to compile"
     return -1