-# Copyright 1998-2015 Free Software Foundation, Inc.
+# Copyright 1998-2023 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
standard_testfile
-# Test depends on printf, which the sparclet stub doesn't support.
-if { [istarget "sparclet-*-*"] } {
- return 0
-}
-
# Some targets can't call functions, so don't even bother with this
# test.
if [target_info exists gdb,cannot_call_functions] {
- setup_xfail "*-*-*" 2416
- fail "This target can not call functions"
- continue
+ unsupported "this target can not call functions"
+ return
}
-if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
- untested $testfile.exp
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return -1
}
gdb_test_no_output "set print symbol off"
gdb_test_no_output "set width 0"
-if ![runto_main] then {
- perror "couldn't run to breakpoint"
- continue
+if {![runto_main]} {
+ return
}
set prev_timeout $timeout
set timeout 120
-#step
-gdb_test "step" \
+gdb_test "next 2" \
"strcpy\\(buf, \"test string\"\\);" \
"step after assignment to s"