Page MenuHomeFreeBSD

sig_handle_first_stop(): notify debugger
ClosedPublic

Authored by kib on Apr 23 2025, 4:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 15, 3:36 PM
Unknown Object (File)
Fri, Nov 14, 11:03 AM
Unknown Object (File)
Fri, Nov 14, 6:52 AM
Unknown Object (File)
Fri, Nov 14, 1:04 AM
Unknown Object (File)
Thu, Nov 13, 11:38 PM
Unknown Object (File)
Thu, Nov 6, 4:48 AM
Unknown Object (File)
Tue, Oct 28, 1:55 PM
Unknown Object (File)
Oct 25 2025, 8:10 AM
Subscribers

Details

Summary
Since it could be that no debuggee threads are waken up because all of
them are in interruptible sleep and consequently all were suspended
remotely, call thread_stopped().

Tested by:      pho

sig_suspend_thread(): return info about the way the process was suspended

so that caller can infer whether the thread_stopped() is to be called by
the AST handler.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Apr 23 2025, 4:23 PM
kib added a parent revision: D49961: Fix handling of p_xthread.
kib edited the summary of this revision. (Show Details)

Only create a notification for debugger if no thread is going to call thread_stopped() because all of them were suspended remotely.

markj added inline comments.
sys/kern/kern_sig.c
2805
This revision is now accepted and ready to land.Apr 26 2025, 3:33 PM
kib marked an inline comment as done.Apr 26 2025, 5:29 PM