--- hatari/src/debug/debugui.h 2019/04/09 08:48:37 1.1.1.1 +++ hatari/src/debug/debugui.h 2019/04/09 08:53:07 1.1.1.4 @@ -1,8 +1,8 @@ /* Hatari - debugui.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. Public debugger UI header file. */ @@ -17,12 +17,23 @@ enum { DEBUGGER_CMDDONE // Command done }; +typedef enum { + REASON_NONE, // uninitialized + REASON_CPU_EXCEPTION, + REASON_DSP_EXCEPTION, + REASON_CPU_BREAKPOINT, + REASON_DSP_BREAKPOINT, + REASON_CPU_STEPS, + REASON_DSP_STEPS, + REASON_USER // e.g. keyboard shortcut +} debug_reason_t; + /* Whether CPU exceptions invoke DebugUI */ extern int bExceptionDebugging; -extern void DebugUI(void); extern void DebugUI_Init(void); -extern bool DebugUI_RemoteParse(char *input); +extern void DebugUI(debug_reason_t reason); +extern bool DebugUI_ParseLine(const char *input); extern bool DebugUI_SetParseFile(const char *input); extern void DebugUI_MemorySnapShot_Capture(const char *path, bool bSave);