From 651b785e77f280cfb27887d16703eb177b7d9f8e Mon Sep 17 00:00:00 2001 From: Anton Guda Date: Mon, 8 May 2017 14:01:15 +0300 Subject: [PATCH] proposed fix for bug #590 --- src/gdbserver/gdb-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gdbserver/gdb-server.c b/src/gdbserver/gdb-server.c index e2a70e9ea..223514a3c 100644 --- a/src/gdbserver/gdb-server.c +++ b/src/gdbserver/gdb-server.c @@ -1640,6 +1640,7 @@ int serve(stlink_t *sl, st_state_t *st) { break; } } + break; default: reply = strdup(""); @@ -1662,6 +1663,7 @@ int serve(stlink_t *sl, st_state_t *st) { case '4' : // remove access watchpoint if(delete_data_watchpoint(sl, addr) < 0) { reply = strdup("E00"); + break; } else { reply = strdup("OK"); break;