New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get a thread list from an OSX task #85
Conversation
- Using the thread port as the id because we will need it to control the thread (as in delve [1]). - Most mach threads belong to a pthread from which we can get the name. Couldn't find any other way. This doesn't resolve the main thread name. [1] - https://github.com/go-delve/delve/blob/af250d45126070adbc702fe4ae1b74f19dcfdf97/pkg/proc/native/proc_darwin.go#L260
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
} | ||
|
||
extern "C" { | ||
// FIXME: Use libc > 0.2.74 when available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean this will be in the next release of the libc
crate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
control the thread (as in delve).
Couldn't find any other way. This doesn't resolve the main thread name.