Fix watchpoint support

Setting of watchpoints was nested inside of a case statement, so it
would only run for that case, even though it supports all cases.
pull/105/head
Michael Pratt 2012-08-19 12:19:25 -04:00
rodzic f4a83ff395
commit 684d76afa0
1 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1108,13 +1108,14 @@ int serve(stlink_t *sl, int port) {
wf = WATCHREAD;
} else {
wf = WATCHACCESS;
if(add_data_watchpoint(sl, wf, addr, len) < 0) {
reply = strdup("E00");
} else {
reply = strdup("OK");
break;
}
}
if(add_data_watchpoint(sl, wf, addr, len) < 0) {
reply = strdup("E00");
} else {
reply = strdup("OK");
break;
}
}
default: