Re: Multi-threading support on DragonFlyBSD
Sergey Zigachev via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <AS8PR05MB8230E8AB1FD0D4B3D8D0ECCD92D72@AS8PR05MB8230.eurprd05.prod.outlook.com> |
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.