Re: [PATCH 09/12] gdb: move displaced stepping logic to gdbarch, allow starting concurrent displaced steps

Simon Marchi
2020-11-25T19:35:16Z

On 2020-11-25 2:29 p.m., Simon Marchi via Gdb-patches wrote:
> True, changed for:
>
> for (thread_info *iter = tp->step_over_next; iter != tp; iter->step_over_next)
> ++num;

Good thing the compiler didn't let me compile that, it would have made
an infinite loop! Here's the correct one:

for (thread_info *iter = tp->step_over_next; iter != tp;
iter = iter->step_over_next)
++num;

Simon