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)
Sun, Jun 1, 7:25 AM
Unknown Object (File)
Fri, May 23, 10:17 PM
Unknown Object (File)
Thu, May 15, 1:38 PM
Unknown Object (File)
Thu, May 15, 11:04 AM
Unknown Object (File)
Mon, May 12, 2:26 PM
Unknown Object (File)
Sat, May 10, 10:18 PM
Unknown Object (File)
Thu, May 8, 5:32 AM
Unknown Object (File)
May 2 2025, 11:18 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