From 80c542e4bb016c64c89dcdab894e03a3bcf7425e Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 30 Nov 2024 22:16:18 +0200 Subject: [PATCH] Updated GB_debugger_execute_command (markdown) --- GB_debugger_execute_command.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/GB_debugger_execute_command.md b/GB_debugger_execute_command.md index 9d2c0f7..a8b24e9 100644 --- a/GB_debugger_execute_command.md +++ b/GB_debugger_execute_command.md @@ -1,13 +1,23 @@ ## Definition -GB_debugger_execute_command([[GB_gameboy_t]] *gb, char *input); +void GB_debugger_execute_command([[GB_gameboy_t]] *gb, char *input); 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]] \ No newline at end of file