Re: [PATCH] gdbserver: Install single-step breakpoint for a pending thread whose last_resume_kind is resume_step

Alexandra Petlanova Hajkova via Gdb-patches
2023-07-10T12:46:44Z

On Mon, Jul 3, 2023 at 5:05 AM <zhiyong.yan@windriver.com> wrote:

> From: Zhiyong Yan <zhiyong.yan@windriver.com>
>
> Gdb should not assume pending threads always generate “a non-gdbserver
> trap event”, for example “Signal 17” event could happen. Now that
> resume_stopped_resumed_lwps() -> may_hw_step() assumes that the break point
> must already exist, resume_one_thread() should ensure the software breaking
> point is installed although the thread is pending.
>
> Signed-off-by: Zhiyong Yan zhiyong.yan@windriver.com
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30387

I can confirm this patch causes no regression Fedora-Rawhide, ppc64le.