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

bbdynsize tutorial - build error #24

Closed
Pavel-Durov opened this issue Jun 1, 2023 · 2 comments
Closed

bbdynsize tutorial - build error #24

Pavel-Durov opened this issue Jun 1, 2023 · 2 comments

Comments

@Pavel-Durov
Copy link
Owner

I am following the bbdynsize tutorial: https://dynamorio.org/API_tutorial_bbdynsize4.html

DynamoRIO version: DynamoRIO-Linux-9.93.19503
OS: Ubuntu x86_64 GNU/Linux

When I build it I get the following error:
bb_size_client.cpp:81:62: error: invalid conversion from ‘void ()(uint)’ {aka ‘void ()(unsigned int)’} to ‘void*’ [-fpermissive]
81 | dr_insert_clean_call(drcontext, bb, instrlist_first(bb), clean_call, false, 1, OPND_CREATE_INT32(num_instructions));
| ^~~~~~~~~~
| |
| void ()(uint) {aka void ()(unsigned int)}

Should there be a cast to (void *) or am I getting it wrong:

  • dr_insert_clean_call(drcontext, bb, instrlist_first(bb), clean_call, false, 1, OPND_CREATE_INT32(num_instructions));
  • dr_insert_clean_call(drcontext, bb, instrlist_first(bb), (void *)clean_call, false, 1, OPND_CREATE_INT32(num_instructions))

https://groups.google.com/g/dynamorio-users/c/BWVdySjLUn8

@Pavel-Durov
Copy link
Owner Author

@Pavel-Durov
Copy link
Owner Author

DynamoRIO/dynamorio#6111

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

No branches or pull requests

1 participant