Compare commits
1 Commits
tinyriscv
...
debug-log-
Author | SHA1 | Date |
---|---|---|
cgsfv | 8207cf8d94 |
|
@ -490,7 +490,12 @@ int rtos_get_gdb_reg(struct connection *connection, int reg_num)
|
||||||
retval = target->rtos->type->get_thread_reg(target->rtos,
|
retval = target->rtos->type->get_thread_reg(target->rtos,
|
||||||
current_threadid, reg_num, ®_list[0]);
|
current_threadid, reg_num, ®_list[0]);
|
||||||
if (retval != ERROR_OK) {
|
if (retval != ERROR_OK) {
|
||||||
LOG_ERROR("RTOS: failed to get register %d", reg_num);
|
/*
|
||||||
|
* Different RISC-V cores have varying register sets. OpenOCD currently
|
||||||
|
* operates on a fixed register list. Just log a 'debug' message if a
|
||||||
|
* reegister doesn't exist.
|
||||||
|
*/
|
||||||
|
LOG_DEBUG("RTOS: failed to get register %d", reg_num);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -499,7 +504,12 @@ int rtos_get_gdb_reg(struct connection *connection, int reg_num)
|
||||||
®_list,
|
®_list,
|
||||||
&num_regs);
|
&num_regs);
|
||||||
if (retval != ERROR_OK) {
|
if (retval != ERROR_OK) {
|
||||||
LOG_ERROR("RTOS: failed to get register list");
|
/*
|
||||||
|
* Different RISC-V cores have varying register sets. OpenOCD currently
|
||||||
|
* operates on a fixed register list. Just log a 'debug' message if a
|
||||||
|
* reegister doesn't exist.
|
||||||
|
*/
|
||||||
|
LOG_DEBUG("RTOS: failed to get register list");
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue