aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-08-27 15:07:49 -0700
committerGitHub <noreply@github.com>2018-08-27 15:07:49 -0700
commit58824330da72795db9313b1bddba058f3ee5bbf5 (patch)
treef84ceb17681b5fc8804604dee60673f8f8cb2aba
parent7897d4009924ae4c42ef0796e9754ec1150de41f (diff)
downloadriscv-openocd-58824330da72795db9313b1bddba058f3ee5bbf5.zip
riscv-openocd-58824330da72795db9313b1bddba058f3ee5bbf5.tar.gz
riscv-openocd-58824330da72795db9313b1bddba058f3ee5bbf5.tar.bz2
Match on qC, but not qCRC. (#294)
Now we pass MulticoreRtosSwitchActiveHartTest again. It was broken by #292. Change-Id: I61f0ae41efda09fd48f732b2122fed2400a43d29
-rw-r--r--src/rtos/riscv_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/riscv_debug.c b/src/rtos/riscv_debug.c
index afb3508..6703008 100644
--- a/src/rtos/riscv_debug.c
+++ b/src/rtos/riscv_debug.c
@@ -124,7 +124,7 @@ static int riscv_gdb_thread_packet(struct connection *connection, const char *pa
return ERROR_OK;
}
- if (strncmp(packet, "qC", 2) == 0) {
+ if (strcmp(packet, "qC") == 0) {
char rep_str[32];
snprintf(rep_str, 32, "QC%" PRIx64, rtos->current_threadid);
gdb_put_packet(connection, rep_str, strlen(rep_str));