-
Notifications
You must be signed in to change notification settings - Fork 12
Debug API #44
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
Debug API #44
Conversation
|
@jakelang what do you think, should we expose these? Need to squash this first. |
| @@ -0,0 +1,10 @@ | |||
| /// The native debug interface exposed to the ewasm contract. These functions are for testing | |||
| /// purposes only. On a live VM, any bytecode trying to import these symbols will be rejected. | |||
| extern "C" { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding a feature flag for conditional compilation of these features would be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@s1na make sure that the conditional compilation flag is not on the interface declaration, but instead the pub mod debug; statement in the parent module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good idea Jake. Updated the code, is this what you meant?
axic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a feature flag for these. Also squash the commits.
Update debug mod docs Add feature flag for debug api
jakelang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Adds debug methods specified in ECI.
These methods would have to be remapped by chisel, but the remapping part is being refactored in wasmx/wasm-chisel#66, so I'll wait for that to be merged and then work on a PR.