Skip to content

Commit d257a7e

Browse files
committed
Add enter-press functionality for break-when-exceed fields
Not quite sure how I feel about this one.
1 parent 90f4514 commit d257a7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/drivers/win/debugger.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,13 @@ void DebuggerBnClicked(HWND hwndDlg, uint16 btnId, HWND hwndBtn)
19921992
case IDC_DEBUGGER_VAL_PC:
19931993
DebuggerBnClicked(hwndDlg, IDC_DEBUGGER_SEEK_PC, NULL);
19941994
break;
1995+
case IDC_DEBUGGER_CYCLES_EXCEED:
1996+
// Sending click events in this way does not auto-check the box.
1997+
DebuggerBnClicked(hwndDlg, IDC_DEBUGGER_BREAK_ON_CYCLES, NULL);
1998+
break;
1999+
case IDC_DEBUGGER_INSTRUCTIONS_EXCEED:
2000+
DebuggerBnClicked(hwndDlg, IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS, NULL);
2001+
break;
19952002
}
19962003
break;
19972004
}
@@ -2135,11 +2142,13 @@ void DebuggerBnClicked(HWND hwndDlg, uint16 btnId, HWND hwndBtn)
21352142
case IDC_DEBUGGER_BREAK_ON_CYCLES:
21362143
{
21372144
break_on_cycles ^= 1;
2145+
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_CYCLES, break_on_cycles);
21382146
break;
21392147
}
21402148
case IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS:
21412149
{
21422150
break_on_instructions ^= 1;
2151+
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS, break_on_instructions);
21432152
break;
21442153
}
21452154
case IDC_DEBUGGER_RELOAD_SYMS:

0 commit comments

Comments
 (0)