Updated GB_debugger_execute_command (markdown)

Lior Halphon 2024-11-30 22:16:18 +02:00
parent 5a8e539caf
commit 80c542e4bb
1 changed files with 12 additions and 2 deletions

@ -1,13 +1,23 @@
## Definition
<tt>GB_debugger_execute_command([[GB_gameboy_t]] *gb, char *input);</code>
<tt>void GB_debugger_execute_command([[GB_gameboy_t]] *gb, char *input);</code>
In `debugger.h`
## Description
TBD
Executes a debugger command `input` in an emulator instance, and returns its (potentially formatted) output via the [[logging interface|GB_set_log_callback]].
The contents of `input` are destroyed upon returning from this function.
## Thread Safety
`GB_debugger_execute_command` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback).
## Notes
Some flow-control commands, such as `continue` and `step`, are not supported by this function and may not behave as expected.
## See Also
* [[GB_debugger_evaluate]]