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

add API routine to get DR segment base #533

Closed
derekbruening opened this issue Nov 28, 2014 · 3 comments
Closed

add API routine to get DR segment base #533

derekbruening opened this issue Nov 28, 2014 · 3 comments

Comments

@derekbruening
Copy link
Contributor

From [email protected] on August 07, 2011 11:40:51

xref issue #527 . But Dr. Memory wants not just the app segment bases but
also the absolute address of dr_raw_tls_calloc() slots. Otherwise it's
awkward to deal with a data structure stored there from C code. Maybe we
should add a new API routine to get the DR segment base (the address that
dr_raw_tls_calloc() offsets are relative to).

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=533

@derekbruening
Copy link
Contributor Author

From [email protected] on August 07, 2011 19:05:03

Shall we have dr_get_raw_tls_base with parameter drcontext or dr_get_dr_seg_base with parmeters segment register and drcontext?

@derekbruening
Copy link
Contributor Author

From [email protected] on August 07, 2011 19:50:30

hmm, the former matches my use case, but the latter is more powerful and perhaps we'll hit some use later that needs it -- though if we do that make sure to document in dr_raw_tls_calloc() that it can be used to get the base

@derekbruening
Copy link
Contributor Author

From [email protected] on August 25, 2011 13:01:12

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant