Skip to content

Commit

Permalink
ui_dbg.h: add a public ui_dbg_stopped() function
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 21, 2023
1 parent addc51a commit 15263ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/ui_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ void ui_dbg_remove_breakpoint(ui_dbg_t* win, uint16_t addr);
void ui_dbg_break(ui_dbg_t* win);
/* continue execution */
void ui_dbg_continue(ui_dbg_t* win, bool invoke_continued_cb);
/* return true if the debugger is currently stopped */
bool ui_dbg_stopped(ui_dbg_t* win);
/* perform a debugger step-next (step over) */
void ui_dbg_step_next(ui_dbg_t* win);
/* peform a debugger step-into */
Expand Down Expand Up @@ -1985,6 +1987,11 @@ void ui_dbg_continue(ui_dbg_t* win, bool invoke_continued_cb) {
_ui_dbg_continue(win, invoke_continued_cb);
}

bool ui_dbg_stopped(ui_dbg_t* win) {
CHIPS_ASSERT(win && win->valid);
return win->dbg.stopped;
}

void ui_dbg_step_next(ui_dbg_t* win) {
CHIPS_ASSERT(win && win->valid);
_ui_dbg_step_over(win);
Expand Down

0 comments on commit 15263ef

Please sign in to comment.