diff options
author | Tim Newsome <tim@sifive.com> | 2019-01-24 15:15:18 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2019-01-24 15:27:53 -0800 |
commit | afedcb337a79517462765aa62b1988c8857cc724 (patch) | |
tree | 11d36231a907beca10dd6fe597e3d216533444a2 /src/rtos/rtos.c | |
parent | c296c625214c74e25744ed8c2c0b62b65c90532d (diff) | |
download | riscv-openocd-afedcb337a79517462765aa62b1988c8857cc724.zip riscv-openocd-afedcb337a79517462765aa62b1988c8857cc724.tar.gz riscv-openocd-afedcb337a79517462765aa62b1988c8857cc724.tar.bz2 |
WIP on hardware breakpoints.
This is messy, but contains at least some bugfixes.
39/43 tests pass now.
Change-Id: Ic9e8dad2a0ceb237e28c93906d1cd60876a5766d
Diffstat (limited to 'src/rtos/rtos.c')
-rw-r--r-- | src/rtos/rtos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 5496008..a5b7fdb 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -432,6 +432,7 @@ int rtos_thread_packet(struct connection *connection, char const *packet, int pa target->rtos->current_threadid = target->rtos->current_thread; else target->rtos->current_threadid = threadid; + LOG_DEBUG("current_threadid=%ld", target->rtos->current_threadid); } gdb_put_packet(connection, "OK", 2); return ERROR_OK; @@ -516,6 +517,7 @@ int rtos_get_gdb_reg_list(struct connection *connection) { struct target *target = get_target_from_connection(connection); int64_t current_threadid = target->rtos->current_threadid; + LOG_DEBUG("current_threadid=%ld", target->rtos->current_threadid); if ((target->rtos != NULL) && (current_threadid != -1) && (current_threadid != 0) && ((current_threadid != target->rtos->current_thread) || |