Page MenuHomeFreeBSD

sig_handle_first_stop(): notify debugger
ClosedPublic

Authored by kib on Apr 23 2025, 4:23 PM.
Tags
None
Referenced Files
F132515005: D49984.diff
Fri, Oct 17, 1:57 PM
Unknown Object (File)
Mon, Oct 6, 9:07 AM
Unknown Object (File)
Thu, Oct 2, 6:41 AM
Unknown Object (File)
Mon, Sep 29, 4:24 AM
Unknown Object (File)
Sun, Sep 28, 6:15 AM
Unknown Object (File)
Sun, Sep 28, 4:45 AM
Unknown Object (File)
Wed, Sep 24, 7:09 AM
Unknown Object (File)
Mon, Sep 22, 2:49 PM
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