修訂 | a16c96980d9593a14237725af695f52e9f211bc9 (tree) |
---|---|
時間 | 2022-10-19 16:04:12 |
作者 | Tom de Vries <tdevries@suse...> |
Commiter | Tom de Vries |
[gdb/testsuite] Fix ERROR in gdb.python/py-breakpoint.exp
With test-case gdb.python/py-breakpoint.exp I run into:
...
(gdb) ERROR: tcl error sourcing gdb.python/py-breakpoint.exp.
ERROR: can't read "skip_hw_watchpoint_tests_p": no such variable
"if {$skip_hw_watchpoint_tests_p} {
...
Fix this by adding the missing "global skip_hw_watchpoint_tests_p" in two
procs.
Tested on x86_64-linux.
@@ -307,6 +307,7 @@ proc_with_prefix test_watchpoints { } { | ||
307 | 307 | |
308 | 308 | proc_with_prefix test_bkpt_internal { } { |
309 | 309 | global srcfile testfile hex decimal |
310 | + global skip_hw_watchpoint_tests_p | |
310 | 311 | |
311 | 312 | # Start with a fresh gdb. |
312 | 313 | clean_restart ${testfile} |
@@ -354,6 +355,7 @@ proc_with_prefix test_bkpt_internal { } { | ||
354 | 355 | |
355 | 356 | proc_with_prefix test_bkpt_eval_funcs { } { |
356 | 357 | global srcfile testfile hex decimal |
358 | + global skip_hw_watchpoint_tests_p | |
357 | 359 | |
358 | 360 | # Start with a fresh gdb. |
359 | 361 | clean_restart ${testfile} |