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