From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1EF13858C52; Wed, 4 Jan 2023 17:18:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1EF13858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672852691; bh=7IoUEkZGUCNXtcrRpQ6HAk/cYNNWIeFRkT/SK+unb6E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Nt9c97b54bm91Eekj9QJasS6J6N59t+YoXw24l0C1kP0kUKIodLnykg1aFy770jEt 7jLxJkjtkIeQIWB69s2qnyW7eJdEh3vowsuWVc6ePma7DJ9JZt8SLfCsp2KB9Y4jxC LCg/8oEOmATGh6ZaSVRX47GIhvilF6xC/ePI2rWI= 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: Wed, 04 Jan 2023 17:18:11 +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 #2 from Tom de Vries --- The decision to stop stepping happens here in this code in process_event_stop_test: ... /* When stepping backward, stop at beginning of line range=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 (unless it's the function entry point, in which case=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 keep going back to the call point). */ CORE_ADDR stop_pc =3D ecs->event_thread->stop_pc (); 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; } /* We stepped out of the stepping range. */ ... AFAICT, there just isn't enough information at this point to decide to stop stepping. This code is part of an early-out that tries to do: ... /* If stepping through a line, keep going if still within it.=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=