aboutsummaryrefslogtreecommitdiffstats
path: root/test/autowasm.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-08-10 14:48:52 +0000
committerbloodstalker <thabogre@gmail.com>2018-08-10 14:48:52 +0000
commita1cd8204343a4e4c173691dc646c85f883d76bad (patch)
tree41dafb4a93502d5ec0faf19387560e059b837ba1 /test/autowasm.c
parentupdate (diff)
downloadfaultreiber-a1cd8204343a4e4c173691dc646c85f883d76bad.tar.gz
faultreiber-a1cd8204343a4e4c173691dc646c85f883d76bad.zip
update
Diffstat (limited to 'test/autowasm.c')
-rw-r--r--test/autowasm.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/autowasm.c b/test/autowasm.c
index 986b1d0..fe3fece 100644
--- a/test/autowasm.c
+++ b/test/autowasm.c
@@ -31,10 +31,20 @@ int main (int argc, char** argv) {
printf("import_section_payloadlength:%d\n", W_Import_Section_container->payloadlength);
printf("import_section_count:%d\n", W_Import_Section_container->count);
for(int i = 0; i < W_Import_Section_container->count; ++i) {
- printf("import_section_entry_module_length:%d\n", W_Import_Section_container->entries[i]->module_length);
+ printf("module_length:%d\n", W_Import_Section_container->entries[i]->module_length);
printf("module_str:%s\n", W_Import_Section_container->entries[i]->module_str);
- printf("import_section_entry_field_length:%d\n", W_Import_Section_container->entries[i]->field_len);
+ printf("field_length:%d\n", W_Import_Section_container->entries[i]->field_len);
+ printf("field_str:%s\n", W_Import_Section_container->entries[i]->field_str);
+ printf("kind:%d\n", W_Import_Section_container->entries[i]->kind);
+ if (W_Import_Section_container->entries[i]->kind == 0)
+ printf("type:%d\n", W_Import_Section_container->entries[i]->kind);
+ printf("\n");
}
+ printf("function_section_id:%d\n", W_Function_Section_container->id);
+ printf("function_section_payloadlength:%d\n", W_Function_Section_container->payloadlength);
+ printf("function_section_count:%d\n", W_Function_Section_container->count);
+ for (int i = 0; i < W_Function_Section_container->count; ++i)
+ printf("type:%d\n", W_Function_Section_container->types[i]);
release_all();
return 0;