Skip to content

Commit

Permalink
Updated behaviour on Reset
Browse files Browse the repository at this point in the history
Fixes an issue where early breakpoints did not trigger.
(Closes #1198) (Closes #1246) (Closes #1319)
  • Loading branch information
Nightwalker-87 committed Sep 14, 2023
1 parent fd8d8e6 commit a0c0216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/st-util/gdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ int32_t serve(stlink_t *sl, st_state_t *st) {
reply = strdup("E00");
}

ret = stlink_reset(sl, RESET_AUTO);
ret = stlink_reset(sl, RESET_SOFT_AND_HALT);
if (ret) {
DLOG("Rcmd: reset failed with reset\n");
reply = strdup("E00");
Expand Down Expand Up @@ -1835,7 +1835,7 @@ int32_t serve(stlink_t *sl, st_state_t *st) {

case 'R': {
// reset the core.
ret = stlink_reset(sl, RESET_AUTO);
ret = stlink_reset(sl, RESET_SOFT_AND_HALT);
if (ret) { DLOG("R packet : stlink_reset failed\n"); }

init_code_breakpoints(sl);
Expand Down

0 comments on commit a0c0216

Please sign in to comment.