From 2517917f0c79098df416d87d62a342162e0ef625 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 11 Sep 2025 18:31:37 +0200 Subject: [PATCH] [gdb/testsuite, tclint] Fix syntax error in gdb.base/dtrace-probe.exp When running tclint with gdb.base/dtrace-probe.exp I get: ... $ tclint gdb.base/dtrace-probe.exp $exp:67:45: syntax error: expected newline or semicolon, got ] ... due to these lines: ... 67 runto "-probe-dtrace test:two-locations"] 68 runto "-probe-dtrace test:two-locations"] ... Fix this by dropping the trailing ']'. Tested by rerunning tclint. Approved-By: Simon Marchi PR testsuite/33403 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33403 --- gdb/testsuite/gdb.base/dtrace-probe.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/dtrace-probe.exp b/gdb/testsuite/gdb.base/dtrace-probe.exp index e165bb44a65..5d4b9df4402 100644 --- a/gdb/testsuite/gdb.base/dtrace-probe.exp +++ b/gdb/testsuite/gdb.base/dtrace-probe.exp @@ -64,8 +64,8 @@ proc dtrace_test {} { # Since test:progress-counter is disabled we can run to the second # instance of the test:two-locations probe. - runto "-probe-dtrace test:two-locations"] - runto "-probe-dtrace test:two-locations"] + runto "-probe-dtrace test:two-locations" + runto "-probe-dtrace test:two-locations" # Go back to the breakpoint on main() and enable the # test:progress-counter probe. Set a breakpoint on it and see -- 2.47.3