Skip to content
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

Add a dummy caml_debugger_saved_instruction when HAS_SOCKETS is false #13719

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

shym
Copy link
Contributor

@shym shym commented Jan 8, 2025

The caml_debugger_saved_instruction function is called unconditionally in runtime/interp.c to implement the debugger-specific instructions. This patch provides a dummy implementation for that function, alongside the other caml_debugger_* functions, so that the interpreter can be built in the uncommon setups with no available socket implementation.

This was encountered while building a compiler for MirageOS.
This doesn’t require a changelog entry.

runtime/debugger.c Outdated Show resolved Hide resolved
…alse

The `caml_debugger_saved_instruction` function is called unconditionally
in `runtime/interp.c` to implement the debugger-specific instructions.
This patch provides a dummy implementation for that function, alongside
the other `caml_debugger_*` functions, so that the interpreter can be
built in the uncommon setups with no available socket implementation.
Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

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

There's also caml_debugger_code_unloaded, although looking at #8654, I can't tell where/how that function's intended to be used (@jhjourdan?)

@dra27 dra27 merged commit 6c298db into ocaml:trunk Jan 10, 2025
21 checks passed
@shym shym deleted the no-sockets branch January 10, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants