aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.multi/multi-target-thread-find.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-03-25 09:55:25 +0100
committerTom de Vries <tdevries@suse.de>2024-03-25 09:55:25 +0100
commit61ced226a4fc2e6df7836cd9c0f7e1ad47af2440 (patch)
tree3376c3372728bb3e058c9644f89ade003a78ea9c /gdb/testsuite/gdb.multi/multi-target-thread-find.exp
parent121a4d3d8025b8619c5b0e189040c47a7815a0f1 (diff)
downloadgdb-61ced226a4fc2e6df7836cd9c0f7e1ad47af2440.zip
gdb-61ced226a4fc2e6df7836cd9c0f7e1ad47af2440.tar.gz
gdb-61ced226a4fc2e6df7836cd9c0f7e1ad47af2440.tar.bz2
[gdb/testsuite] Fix tdlabel_re references
Commit 467a34bb9e6 ("gdb tests: Allow for "LWP" or "process" in thread IDs from info threads") introduces a new global variable tdlabel_re, but fails to indicate it's global when used in procs in four test-cases. Fix this by adding "global tdlabel_re". Tested on aarch64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.multi/multi-target-thread-find.exp')
-rw-r--r--gdb/testsuite/gdb.multi/multi-target-thread-find.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.multi/multi-target-thread-find.exp b/gdb/testsuite/gdb.multi/multi-target-thread-find.exp
index ee6df54..24d19d5 100644
--- a/gdb/testsuite/gdb.multi/multi-target-thread-find.exp
+++ b/gdb/testsuite/gdb.multi/multi-target-thread-find.exp
@@ -23,7 +23,7 @@ if {![multi_target_prepare]} {
}
proc test_thread_find {} {
- global decimal gdb_prompt
+ global decimal gdb_prompt tdlabel_re
set NUM_INFS 6