kopia lustrzana https://github.com/stlink-org/stlink
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
rodzic
f4a83ff395
commit
684d76afa0
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue