--- freem/src/mdebug.h 2025/03/09 19:50:47 1.3 +++ freem/src/mdebug.h 2025/04/30 14:41:03 1.5 @@ -1,5 +1,5 @@ /* - * $Id: mdebug.h,v 1.3 2025/03/09 19:50:47 snw Exp $ + * $Id: mdebug.h,v 1.5 2025/04/30 14:41:03 snw Exp $ * debugger enhancements * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: mdebug.h,v $ + * Revision 1.5 2025/04/30 14:41:03 snw + * Further debugger work + * + * Revision 1.4 2025/04/29 18:46:17 snw + * Begin work on interactive debugger + * * Revision 1.3 2025/03/09 19:50:47 snw * Second phase of REUSE compliance and header reformat * @@ -37,6 +43,17 @@ #define MAXWATCH 100 +#define DEBENTRY_CMD 0 +#define DEBENTRY_LINE 1 +#define DEBENTRY_BREAKPOINT 2 +#define DEBENTRY_ERROR 4 +#define DEBENTRY_SIGINT 5 + +#define STEPMODE_NONE 0 +#define STEPMODE_CONT 1 +#define STEPMODE_CMD 2 +#define STEPMODE_LINE 3 + typedef struct dbg_watch { /* name of variable to watch */ @@ -52,6 +69,7 @@ typedef struct dbg_watch { } dbg_watch; extern void dbg_init (void); +extern int debugger (int entry_mode, char *curcode); extern dbg_watch *dbg_add_watch (char *varnam); extern void dbg_remove_watch (char *varnam); extern dbg_watch *dbg_find_watch (char *varnam);