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.
}
proc test_thread_find {} {
- global decimal gdb_prompt
+ global decimal gdb_prompt tdlabel_re
set NUM_INFS 6
# Run the tests with different features of GDBserver disabled.
# TARGET_NON_STOP is passed to "maint set target-non-stop".
proc run_test { target_non_stop disable_feature } {
- global binfile gdb_prompt decimal hex
+ global binfile gdb_prompt decimal hex tdlabel_re
global GDBFLAGS
save_vars { GDBFLAGS } {
# inferior and tfile.
proc use_collected_data { data_source } {
+ global tdlabel_re
+
with_test_prefix "${data_source}" {
global tdp1 tdp2 tdp3 tdp4 tdp5 tdp6
global testline1 testline2 testline3 testline4 testline5 testline6
global executable
global gdb_prompt
global libipa
+ global tdlabel_re
# Restart with a fresh gdb.
clean_restart $executable