From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 787DD3858414; Fri, 10 Feb 2023 14:50:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 787DD3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676040656; bh=nTOehihQREgRLjh2GvuPgsy+BAgheeV9kqO8VX9sjw8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BVKCafUsy7rhqYmai0wVo6jNyqffeIfzgnC4cJNgslq2PWaJhfCymx4Wc1H/GZ4Dn VHCF6qVgKH8dGbcxEgVhq7VuO6DxqADaFgsGkzbI6gGQR/JwMUQi+A2ghr4X5O5/FM eGipn/eJfNtadCX6zyyCybYErfMbLmWdLpVdGuUc= From: "libin.dang at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29742] [ARMv7] [gdbserver] maybe_hw_step: Assertion `has_single_step_breakpoints (thread)' failed. Date: Fri, 10 Feb 2023 14:50:56 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: libin.dang at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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=3D29742 --- Comment #10 from Libin Dang --- It seems this issue can be fixed by the following change: diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 7e1de39..6639f6e 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -2460,16 +2460,11 @@ linux_process_target::resume_stopped_resumed_lwps (thread_info *thread) && !lp->status_pending_p && thread->last_status.kind () =3D=3D TARGET_WAITKIND_IGNORE) { - int step =3D 0; - - if (thread->last_resume_kind =3D=3D resume_step) - step =3D maybe_hw_step (thread); - - threads_debug_printf ("resuming stopped-resumed LWP %s at %s: step= =3D%d", + threads_debug_printf ("resuming stopped-resumed LWP %s at %s", target_pid_to_str (ptid_of (thread)).c_str (), - paddress (lp->stop_pc), step); + paddress (lp->stop_pc)); - resume_one_lwp (lp, step, GDB_SIGNAL_0, NULL); + proceed_one_lwp (thread, NULL); } } --=20 You are receiving this mail because: You are on the CC list for the bug.=