From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7862) id 056503858413; Fri, 4 Nov 2022 11:04:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 056503858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667559864; bh=VHpC3xlcT0f4qUb/PCXnn3tHJP2Fpr6SkVYbsL6PMeE=; h=From:To:Subject:Date:From; b=eq7yF10Li6JyJzZdQ8Lr88dNfyAlxAHou6u6gRZUcViM3S0XU8MwecygK4szuYMwf X+i4N13XaMmNltO2vaifhVFtlo1LXebYY3/k8AOEbildiSXkz08TZp+DNWjVU/zGJ4 Zl4a3ETPHde4R+I9JCERFm6KmAKhXHbTi/QJDS7M= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bruno Larsen To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: add KFAILs to gdb.reverse/step-reverse.exp X-Act-Checkin: binutils-gdb X-Git-Author: Bruno Larsen X-Git-Refname: refs/heads/master X-Git-Oldrev: d8521074fe20928d34072701043806f381c5a07d X-Git-Newrev: 476410b3bca1389ee69e9c8fa18aaee16793a56d Message-Id: <20221104110424.056503858413@sourceware.org> Date: Fri, 4 Nov 2022 11:04:22 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D476410b3bca1= 389ee69e9c8fa18aaee16793a56d commit 476410b3bca1389ee69e9c8fa18aaee16793a56d Author: Bruno Larsen Date: Thu Nov 3 10:01:42 2022 +0100 gdb/testsuite: add KFAILs to gdb.reverse/step-reverse.exp =20 Recent changes to gdb.reverse/step-reverse.exp revealed the latent bug PR record/29745, where we can't skip one funcion forward if we're using native-gdbserver. This commit just adds kfails to the test. =20 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29745 Approved-By: Simon Marchi Diff: --- gdb/testsuite/gdb.reverse/step-reverse.exp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gdb/testsuite/gdb.reverse/step-reverse.exp b/gdb/testsuite/gdb= .reverse/step-reverse.exp index c28e1f6db4f..d2975cffb5c 100644 --- a/gdb/testsuite/gdb.reverse/step-reverse.exp +++ b/gdb/testsuite/gdb.reverse/step-reverse.exp @@ -31,6 +31,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $= srcfile] } { } =20 runto_main +set target_remote [gdb_is_target_remote] =20 if [supports_process_record] { # Activate process record/replay @@ -273,11 +274,25 @@ if { "$step_out" =3D=3D 1 } { # Step forward over recursion again so we can test stepping over calls # inside the recursion itself. gdb_test_no_output "set exec-dir forward" "forward again to test recursion" +if {$target_remote} { + # gdb doesn't record the change of return pointer for remote targets, + # so we can't next forward over functions. + setup_kfail gdb/29745 *-*-* +} gdb_test "next" "NEXT OVER THIS CALL.*" "reverse next over recursion again" gdb_test_no_output "set exec-dir reverse" "reverse again to test recursion" =20 +if {$target_remote} { + # Because of the above mentioned KFAIL, the inferior is now out of sync + setup_kfail gdb/29745 *-*-* +} gdb_test "step" ".*EXIT RECURSIVE FUNCTION.*" "enter recursive function" set seen_recursive_call 0 +if {$target_remote} { + # Because of the above mentioned KFAIL, the inferior is now out of sync + # The fail state below will resync the inferior. + setup_kfail gdb/29745 *-*-* +} gdb_test_multiple "next" "step over recursion inside the recursion" { -re -wrap ".*RECURSIVE CALL.*" { incr seen_recursive_call