Page MenuHomeFreeBSD

sig_handle_first_stop(): notify debugger
Needs ReviewPublic

Authored by kib on Wed, Apr 23, 4:23 PM.
Tags
None
Referenced Files
F115611213: D49984.id154176.diff
Fri, Apr 25, 11:39 PM
Unknown Object (File)
Fri, Apr 25, 12:38 PM
Unknown Object (File)
Fri, Apr 25, 10:39 AM
Unknown Object (File)
Fri, Apr 25, 4:04 AM
Unknown Object (File)
Thu, Apr 24, 1:50 PM
Unknown Object (File)
Thu, Apr 24, 9:11 AM
Unknown Object (File)
Thu, Apr 24, 9:11 AM
Subscribers

Details

Reviewers
markj
jhb
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 Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Wed, Apr 23, 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.