From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id C19F13858D39; Wed, 19 Oct 2022 07:04:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C19F13858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666163055; bh=KyzgudVObVwdUmuiRLvLpzvwImB83CBAZqpDcNFionU=; h=From:To:Subject:Date:From; b=KOUswQ9Jyud2cpzffyrUDRoG1s0mvV46BJzX2DiHdORrls0FDlA2l8y44gGdm34u8 JiNrDDemNEbT3b0qGgGnAIHdPKIijzXtLYVw/6qXskf8OqlxS45pfusZbzSt0ybh18 LZEd+3YdcTu9HZG/yAgqwpB4pFcdR23Roxl6sHlQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix ERROR in gdb.python/py-breakpoint.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 906f69cf65daa8fee1c1c94a5c2fb221ba02b40d X-Git-Newrev: a16c96980d9593a14237725af695f52e9f211bc9 Message-Id: <20221019070415.C19F13858D39@sourceware.org> Date: Wed, 19 Oct 2022 07:04:15 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da16c96980d95= 93a14237725af695f52e9f211bc9 commit a16c96980d9593a14237725af695f52e9f211bc9 Author: Tom de Vries Date: Wed Oct 19 09:04:12 2022 +0200 [gdb/testsuite] Fix ERROR in gdb.python/py-breakpoint.exp =20 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" "" }" ... =20 Fix this by adding the missing "global skip_hw_watchpoint_tests_p" in t= wo procs. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.python/py-breakpoint.exp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb= .python/py-breakpoint.exp index 0451562f09b..c3215b13d5c 100644 --- 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 { } { =20 proc_with_prefix test_bkpt_internal { } { global srcfile testfile hex decimal + global skip_hw_watchpoint_tests_p =20 # Start with a fresh gdb. clean_restart ${testfile} @@ -354,6 +355,7 @@ proc_with_prefix test_bkpt_internal { } { =20 proc_with_prefix test_bkpt_eval_funcs { } { global srcfile testfile hex decimal + global skip_hw_watchpoint_tests_p =20 # Start with a fresh gdb. clean_restart ${testfile}