From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C76683858C66; Thu, 12 Jan 2023 11:55:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C76683858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673524529; bh=c4fYQcxwQi4hf/aaJqGdCN1SHWaBnV5LoNpUAVgV0HA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iNlh2ksE9nJqYNS4B6yt/pUw+CWrSeWqG+E0fJBimH/nYhkkoAt0fdozVa9dzQETh hKnVn6S7D98NOW/tQi3OqgVSdRzxv8EU6pcqGE8QiriP1KsxFEQPWOTL4C+S6qhmUA 4boFbsFu4xeDM/R86bKqyKtlUsDgDgq2ZU3ZLsbQ= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29962] FAIL: gdb.reverse/step-reverse.exp: reverse step into fn call Date: Thu, 12 Jan 2023 11:55:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29962 --- Comment #7 from Tom de Vries --- This passes gdb.reverse/*.exp: ... diff --git a/gdb/infrun.c b/gdb/infrun.c index 181d961d80d..ba0b10de965 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -6900,11 +6900,12 @@ process_event_stop_test (struct execution_control_s= tate *ecs) if (stop_pc =3D=3D ecs->event_thread->control.step_range_start && stop_pc !=3D ecs->stop_func_start && execution_direction =3D=3D EXEC_REVERSE) - end_stepping_range (ecs); + ; else - keep_going (ecs); - - return; + { + keep_going (ecs); + return; + } } /* We stepped out of the stepping range. */ @@ -7401,6 +7402,8 @@ process_event_stop_test (struct execution_control_sta= te *ecs) "it's not the start of a statement"); } } + else if (execution_direction =3D=3D EXEC_REVERSE) + refresh_step_info =3D false; /* We aren't done stepping. ... --=20 You are receiving this mail because: You are on the CC list for the bug.=