• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂a16c96980d9593a14237725af695f52e9f211bc9 (tree)
時間2022-10-19 16:04:12
作者Tom de Vries <tdevries@suse...>
CommiterTom de Vries

Log Message

[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

while executing

"if {$skip_hw_watchpoint_tests_p} {

gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}"

...

Fix this by adding the missing "global skip_hw_watchpoint_tests_p" in two
procs.

Tested on x86_64-linux.

Change Summary

差異

--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -307,6 +307,7 @@ proc_with_prefix test_watchpoints { } {
307307
308308 proc_with_prefix test_bkpt_internal { } {
309309 global srcfile testfile hex decimal
310+ global skip_hw_watchpoint_tests_p
310311
311312 # Start with a fresh gdb.
312313 clean_restart ${testfile}
@@ -354,6 +355,7 @@ proc_with_prefix test_bkpt_internal { } {
354355
355356 proc_with_prefix test_bkpt_eval_funcs { } {
356357 global srcfile testfile hex decimal
358+ global skip_hw_watchpoint_tests_p
357359
358360 # Start with a fresh gdb.
359361 clean_restart ${testfile}