Re: Multi-threading support on DragonFlyBSD

Sergey Zigachev via Gdb
2025-03-09T15:17:37Z

Ok, skimmed through linux target I saw this:

/* In all-stop, give preference to the LWP that is being
single-stepped. There will be at most one, and it will be the
LWP that the core is most interested in. If we didn't do this,
then we'd have to handle pending step SIGTRAPs somehow in case
the core later continues the previously-stepped thread, as
otherwise we'd report the pending SIGTRAP then, and the core, not
having stepped the thread, wouldn't understand what the trap was
for, and therefore would report it to the user as a random
signal. */

I guess this answers my question.