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

Use bindgen to build freebsd's ptrace structure #11

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

akhramov
Copy link
Contributor

@akhramov akhramov commented Aug 8, 2021

ptrace_vm_entry structure may differ on different systems and in
this case it's best to generate it using bindgen. Because currently
compilation succeedes even if system is incompatible with the
structure provided by the library.

This change

  • adds bindgen to generate bindings to ptrace, in particular to
    ptrace_vm_entry structure. Compilation will fail if that structure
    changes, which is desired behavior.

`ptrace_vm_entry` structure may differ on different systems and in
this case it's best to generate it using bindgen. Because currently
compilation succeedes even if system is incompatible with the
structure provided by the library.

This change
* adds bindgen to generate bindings to ptrace, in particular to
  `ptrace_vm_entry` structure. Compilation will fail if that structure
  changes, which is desired behavior.
@akhramov akhramov force-pushed the feature/add-example branch from 3370a20 to b2c863a Compare August 9, 2021 12:56
@akhramov akhramov changed the title Add examples folder Use bindgen to build freebsd's ptrace structure Aug 9, 2021
@benfred benfred merged commit a3c2d2c into rbspy:master Aug 10, 2021
@benfred
Copy link
Collaborator

benfred commented Aug 10, 2021

thanks! pushed to v0.1.9 https://crates.io/crates/proc-maps

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.

2 participants