Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from wasmerio/feature/add-debug-argument-info
Add debug argument info
- Loading branch information
Showing
9 changed files
with
84 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
use super::process::abort_with_message; | ||
use crate::webassembly::Instance; | ||
|
||
pub extern "C" fn nullfunc_ii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_ii"); | ||
pub extern "C" fn nullfunc_ii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_ii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'ii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_iii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iii"); | ||
pub extern "C" fn nullfunc_iii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'iii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_iiii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iiii"); | ||
pub extern "C" fn nullfunc_iiii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iiii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'iiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_iiiii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iiiii"); | ||
pub extern "C" fn nullfunc_iiiii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iiiii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'iiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_iiiiii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iiiiii"); | ||
pub extern "C" fn nullfunc_iiiiii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_iiiiii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'iiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_v(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_v"); | ||
pub extern "C" fn nullfunc_v(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_v {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'v'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_vi(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_vi"); | ||
pub extern "C" fn nullfunc_vi(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_vi {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'vi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_vii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_vii"); | ||
pub extern "C" fn nullfunc_vii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_vii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'vii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_viii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_viii"); | ||
pub extern "C" fn nullfunc_viii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_viii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'viii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} | ||
|
||
pub extern "C" fn nullfunc_viiii(_x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_viiii"); | ||
pub extern "C" fn nullfunc_viiii(x: u32, _instance: &Instance) { | ||
debug!("emscripten::nullfunc_viiii {}", x); | ||
abort_with_message("Invalid function pointer called with signature 'viiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.