mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-06 13:47:59 +03:00
Add support for Debug Adapter Protocol
If -debug_dap flag is given, xsystem35 speaks the Debug Adapter Protocol (https://microsoft.github.io/debug-adapter-protocol/) via stdin/stdout. This enables xsystem35 to work as a backend of VS Code's Debugger (and possibly other debuggers that support DAP).
This commit is contained in:
+6
-4
@@ -39,17 +39,19 @@ extern DebuggerState dbg_state;
|
||||
#ifdef ENABLE_DEBUGGER
|
||||
|
||||
#define dbg_trapped() (dbg_state != DBG_RUNNING)
|
||||
#define dbg_interrupted() (dbg_state == DBG_STOPPED_INTERRUPT)
|
||||
void dbg_init(const char *symbols_path);
|
||||
void dbg_init(const char *symbols_path, boolean use_dap);
|
||||
void dbg_quit();
|
||||
void dbg_main(void);
|
||||
void dbg_onsleep(void);
|
||||
BYTE dbg_handle_breakpoint(int page, int addr);
|
||||
|
||||
#else // ENABLE_DEBUGGER
|
||||
|
||||
#define dbg_trapped() false
|
||||
#define dbg_interrupted() false
|
||||
#define dbg_init(symbols_path)
|
||||
#define dbg_init(symbols_path, use_dap)
|
||||
#define dbg_quit()
|
||||
#define dbg_main()
|
||||
#define dbg_onsleep()
|
||||
#define dbg_handle_breakpoint(page, addr) BREAKPOINT
|
||||
|
||||
#endif // ENABLE_DEBUGGER
|
||||
|
||||
Reference in New Issue
Block a user