From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1751) id 46BAF384F6FE; Mon, 21 Nov 2022 20:08:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46BAF384F6FE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669061330; bh=R0IB0LG2+Qnjl0uhGHW6baHlhUjqHEJn6fYXv9cV2lU=; h=From:To:Subject:Date:From; b=k18Y5P/ixoAi4/Ka7TWg9tbLUUD6FjpMRbi2B+g7HKuAyXyntlXqIcR/OZWnxwjm1 tUfa+CiSYIzPQaKpyXztsbYBczNl5UsbqMEeaiLtgRIGEI1jxk/6twENjNxF3lHe2f TkrvGzQAFQQLSPo5nXE6TgG6Zf05epOm2520V5EU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Philippe Waroquiers To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix step-over-syscall.exp matching regexp for $bpnum.$locno matching X-Act-Checkin: binutils-gdb X-Git-Author: Philippe Waroquiers X-Git-Refname: refs/heads/master X-Git-Oldrev: 1a7e622b82fa621ab505dd911bc30c1efcb4a9b0 X-Git-Newrev: e66c9edea34ce13e7a6769996e1d151505d8cd3e Message-Id: <20221121200850.46BAF384F6FE@sourceware.org> Date: Mon, 21 Nov 2022 20:08:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De66c9edea34c= e13e7a6769996e1d151505d8cd3e commit e66c9edea34ce13e7a6769996e1d151505d8cd3e Author: Philippe Waroquiers Date: Mon Nov 21 00:14:38 2022 +0100 Fix step-over-syscall.exp matching regexp for $bpnum.$locno matching =20 step-over-syscall.exp has some specific tests for gdbserver. The regexp matching breakpoint hit must take the added locno into accou= nt. =20 Test re-run in 3 modes (normal, native-gdbserver and native-extended-gd= bserver). Diff: --- gdb/testsuite/gdb.base/step-over-syscall.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/step-over-syscall.exp b/gdb/testsuite/g= db.base/step-over-syscall.exp index 788f6e3f5d0..530765c3dab 100644 --- a/gdb/testsuite/gdb.base/step-over-syscall.exp +++ b/gdb/testsuite/gdb.base/step-over-syscall.exp @@ -368,12 +368,12 @@ proc break_cond_on_syscall { syscall follow_fork deta= ch_on_fork } { if { $detach_on_fork =3D=3D "off" } { gdb_test "inferior 1" gdb_test "break marker" "Breakpoint.*at.*" - gdb_test "continue" "Continuing\\..*Breakpoint \[0-9\]+, marker \\(\= \) at.*" \ + gdb_test "continue" "Continuing\\..*Breakpoint $::bkptno_numopt_re, = marker \\(\\) at.*" \ "continue to marker" } } else { gdb_test "break marker" "Breakpoint.*at.* file .*${testfile}.c, line.*" - gdb_test "continue" "Continuing\\..*Breakpoint \[0-9\]+, marker \\(\\) a= t.*" \ + gdb_test "continue" "Continuing\\..*Breakpoint $::bkptno_numopt_re, mark= er \\(\\) at.*" \ "continue to marker" } }