Permalink
Browse files

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.
  • Loading branch information...
1 parent f4a83ff commit 684d76afa0f36d9c9cc3974f11fd42aa95e22c02 @prattmic prattmic committed Aug 19, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 gdbserver/gdb-server.c
View
@@ -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:

0 comments on commit 684d76a

Please sign in to comment.