Skip to content

Commit

Permalink
Add enter-press functionality for break-when-exceed fields
Browse files Browse the repository at this point in the history
Not quite sure how I feel about this one.
  • Loading branch information
warmCabin committed Jun 28, 2021
1 parent 90f4514 commit d257a7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/drivers/win/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1992,6 +1992,13 @@ void DebuggerBnClicked(HWND hwndDlg, uint16 btnId, HWND hwndBtn)
case IDC_DEBUGGER_VAL_PC:
DebuggerBnClicked(hwndDlg, IDC_DEBUGGER_SEEK_PC, NULL);
break;
case IDC_DEBUGGER_CYCLES_EXCEED:
// Sending click events in this way does not auto-check the box.
DebuggerBnClicked(hwndDlg, IDC_DEBUGGER_BREAK_ON_CYCLES, NULL);
break;
case IDC_DEBUGGER_INSTRUCTIONS_EXCEED:
DebuggerBnClicked(hwndDlg, IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS, NULL);
break;
}
break;
}
Expand Down Expand Up @@ -2135,11 +2142,13 @@ void DebuggerBnClicked(HWND hwndDlg, uint16 btnId, HWND hwndBtn)
case IDC_DEBUGGER_BREAK_ON_CYCLES:
{
break_on_cycles ^= 1;
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_CYCLES, break_on_cycles);
break;
}
case IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS:
{
break_on_instructions ^= 1;
CheckDlgButton(hwndDlg, IDC_DEBUGGER_BREAK_ON_INSTRUCTIONS, break_on_instructions);
break;
}
case IDC_DEBUGGER_RELOAD_SYMS:
Expand Down

0 comments on commit d257a7e

Please sign in to comment.