Skip to content

Conversation

@yamt
Copy link
Contributor

@yamt yamt commented Aug 23, 2022

It's better to leave the control to embedders. (eg. product-mini)

background: I have a use case where

  • The application runs multiple module instances.
  • I want to debug only one of them.

printf("%s\n", wasm_runtime_get_exception(wasm_module_inst));
goto fail4;
}
uint32_t debug_port = wasm_runtime_start_debug_instance(exec_env);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had better declare variables at the beginning of a scope, otherwise some compiler with C90 may complain

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. thank you.

printf("%s\n", wasm_runtime_get_exception(wasm_module_inst));
goto fail4;
}
uint32_t debug_port = wasm_runtime_start_debug_instance(exec_env);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. thank you.

yamt added 2 commits August 24, 2022 17:46
It's better to leave the control to embedders. (eg. product-mini)

background: I have a use case where
* The application runs multiple module instances.
* I want to debug only one of them.
@wenyongh wenyongh merged commit ebcbe0b into bytecodealliance:main Aug 24, 2022
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…dealliance#1407)

Leave the control from wasm_application_execute_main to host embedders,
eg. product-mini.
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

Successfully merging this pull request may close these issues.

3 participants