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

Allow tracking parent and child at the same time on fork #54

Open
Arinerron opened this issue Oct 14, 2021 · 2 comments
Open

Allow tracking parent and child at the same time on fork #54

Arinerron opened this issue Oct 14, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Arinerron
Copy link
Owner

  • need to pass around a ctx struct and get rid of globals
  • probably want to track children... maybe have a children linked list?
  • have to redo analysis to support tracing exec()s too
  • how to distinguish between children/processes? maybe make a global flag to show binary name every operation on fork as a prefix (to distinguish processes) and another to show process ID (to distinguish between children)
  • how do we calculate the oid for separate processes/threads? it would be confusing if oids were global, but they need to be unique to support things like --break
@Arinerron Arinerron added the enhancement New feature or request label Oct 14, 2021
@Arinerron Arinerron added this to the 3.0 milestone Oct 14, 2021
@Arinerron Arinerron self-assigned this Oct 15, 2021
@Arinerron
Copy link
Owner Author

this is complicated mainly because we have to make heaptrace itself fork to be able to waitpid both forks.

@Arinerron
Copy link
Owner Author

ok nvm apparently you can waitpid() process groups lets gooo

@Arinerron Arinerron removed their assignment Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant