# syscall is active. But some active syscalls keep PC pointing to the SVC
# instruction itself.
+# See if we have target board readnow.exp or similar. We're using
+# --readnever, which is not allowed in combination with --readnow.
+require !readnow
+
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
return
}
-# See if we have target board readnow.exp or similar.
-if { [lsearch -exact $GDBFLAGS -readnow] != -1 \
- || [lsearch -exact $GDBFLAGS --readnow] != -1 } {
- untested "--readnever not allowed in combination with --readnow"
- return -1
-}
-
save_vars { GDBFLAGS } {
append GDBFLAGS " --readnever"
if { [clean_restart ${binfile}] == -1 } {
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# See if we have target board readnow.exp or similar. We're using
+# --readnever, which is not allowed in combination with --readnow.
+require !readnow
+
standard_testfile .c
if { [build_executable "failed to build" $testfile $srcfile { debug }] == -1 } {
return -1
}
-# See if we have target board readnow.exp or similar.
-if { [lsearch -exact $GDBFLAGS -readnow] != -1 \
- || [lsearch -exact $GDBFLAGS --readnow] != -1 } {
- untested "--readnever not allowed in combination with --readnow"
- return -1
-}
-
save_vars { GDBFLAGS } {
append GDBFLAGS " --readnever"
if { [clean_restart ${binfile}] == -1 } {