Skip to content

Small enhancement copy_callstack feature #4401

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

lum1n0us
Copy link
Collaborator

  • Change WAMR_ENABLE_COPY_CALLSTACK to WAMR_BUILD_COPY_CALL_STACK, as WAMR_BUILD is the prefix for a command line option.
  • Change WAMR_ENABLE_COPY_CALLSTACK to WASM_ENABLE_COPY_CALL_STACK, as WASM_ENABLE is the prefix for a macro in the source code.
  • Change CALLSTACK to CALL_STACK to align with the existing DUMP_CALL_STACK feature.
  • Continue using WASMCApiFrame instead of wasm_frame_t outside of wasm_c_api.xxx to avoid a typedef redefinition warning, which is identified by Clang.

- Change `WAMR_ENABLE_COPY_CALLSTACK` to `WAMR_BUILD_COPY_CALL_STACK`, as
  `WAMR_BUILD` is the prefix for a command line option.
- Change `WAMR_ENABLE_COPY_CALLSTACK` to `WASM_ENABLE_COPY_CALL_STACK`, as
  `WASM_ENABLE` is the prefix for a macro in the source code.
- Change `CALLSTACK` to `CALL_STACK` to align with the existing
  `DUMP_CALL_STACK` feature.
- Continue using `WASMCApiFrame` instead of `wasm_frame_t` outside of
  *wasm_c_api.xxx* to avoid a typedef redefinition warning, which is
  identified by Clang.
@lum1n0us lum1n0us changed the title Refactor copy callstack feature Small enhancement copy_callstack feature Jun 23, 2025
Copy link
Collaborator

@yamt yamt left a comment

Choose a reason for hiding this comment

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

i guess this should be mentioned in release notes

@lum1n0us
Copy link
Collaborator Author

@g0djan Please be aware of it.

@g0djan
Copy link
Contributor

g0djan commented Jun 24, 2025

thanks, seems okay

@lum1n0us lum1n0us merged commit e414a32 into bytecodealliance:main Jun 24, 2025
426 checks passed
@lum1n0us lum1n0us deleted the fix/opt_copy_call_stack branch June 24, 2025 12:38
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.

4 participants