Re: GDB 10.1 release -- 2020-09-18 Update

Simon Marchi
2020-09-23T14:01:17Z

On 2020-09-23 9:39 a.m., Tom Tromey wrote:
> Simon> Here's another regression since the last release, which should be
> Simon> fixed prior to the release:
>
> Simon> "maintenance set target-async off" is broken on GNU/Linux
> Simon> https://sourceware.org/bugzilla/show_bug.cgi?id=26642
>
> Is there some particular need for this?
> I tend to think maintenance commands shouldn't block a release.
>
> Tom

There is no real need for using "target-async off" on Linux, but I think
it exposes a real bug in the core of GDB (in infrun) that would affect
any sync target.

However, the bug happens because even in target-async off mode,
linux_nat_target::wait obeys the TARGET_WNOHANG and doesn't block.
Maybe that doesn't make sense: a sync target should block in wait, by
definition. Any other sync target would just ignore TARGET_WNOHANG, so
we wouldn't hit the same bug as I hit with the linux-nat target.

Simon