Skip to content
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

Merged
merged 6 commits into from Aug 17, 2020

Conversation

fabiim
Copy link
Contributor

@fabiim fabiim commented Aug 16, 2020

  • Using the thread port as the id because we will need it to
    control the thread (as in delve).
  • 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.

Fábio Botelho added 2 commits August 16, 2020 16:30
- 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
src/target/macos.rs Show resolved Hide resolved
src/target/macos.rs Outdated Show resolved Hide resolved
src/target/macos.rs Outdated Show resolved Hide resolved
src/target/macos.rs Outdated Show resolved Hide resolved
src/target/macos.rs Outdated Show resolved Hide resolved
fabiim and others added 3 commits August 16, 2020 18:10
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
src/target/macos.rs Outdated Show resolved Hide resolved
}

extern "C" {
// FIXME: Use libc > 0.2.74 when available
Copy link
Contributor

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?

Copy link
Contributor Author

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>
Copy link
Member

@nbaksalyar nbaksalyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nbaksalyar nbaksalyar merged commit f1fe924 into headcrab-rs:master Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants