Skip to content

Commit

Permalink
printf debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 12, 2024
1 parent 30ed595 commit 4af6e47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,12 +640,16 @@ instance_execute_init(struct exec_context *ctx)
continue;
}
struct val val;
fprintf(stderr, "calling exec_const_expr\n");
ret = exec_const_expr(&d->offset, TYPE_i32, &val, ctx);
fprintf(stderr, "exec_const_expr returned %d\n", ret);
if (ret != 0) {
goto fail;
}
uint32_t offset = val.u.i32;
fprintf(stderr, "calling memory_init\n");
ret = memory_init(ctx, d->memory, i, offset, 0, d->init_size);
fprintf(stderr, "memory_init returned %d\n", ret);
if (ret != 0) {
goto fail;
}
Expand Down

0 comments on commit 4af6e47

Please sign in to comment.