aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-12-12 07:58:36 -0700
committerTom Tromey <tromey@adacore.com>2024-12-12 07:58:36 -0700
commitcf11692c90b93a23f5c22b78a116287664e36a04 (patch)
tree35b1216620d56cf6733568892410209c72a5c2fd
parentf6dcf290ce55686474bedb3feeadd82f215e170b (diff)
downloadgdb-cf11692c90b93a23f5c22b78a116287664e36a04.zip
gdb-cf11692c90b93a23f5c22b78a116287664e36a04.tar.gz
gdb-cf11692c90b93a23f5c22b78a116287664e36a04.tar.bz2
Fix formatting in gdb.ada/lazy-string.exp
This fixes a formatting issue and corrects a comment in the new gdb.ada/lazy-string.exp. I meant to do this in an earlier patch but forgot to save.
-rw-r--r--gdb/testsuite/gdb.ada/lazy-string.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.ada/lazy-string.exp b/gdb/testsuite/gdb.ada/lazy-string.exp
index 39c1001..553e2b5 100644
--- a/gdb/testsuite/gdb.ada/lazy-string.exp
+++ b/gdb/testsuite/gdb.ada/lazy-string.exp
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test GDB's 'set print characters' setting works for Ada strings.
+# Test UTF-8 lazy strings in Ada.
load_lib "ada.exp"
load_lib gdb-python.exp
@@ -32,8 +32,8 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/main.adb]
-if ![runto "main.adb:$bp_location" ] then {
- return -1
+if {![runto "main.adb:$bp_location"]} {
+ return
}
gdb_test_no_output "python arg = gdb.parse_and_eval('arg.all')"