Compare commits

...

1 Commits

Author SHA1 Message Date
cgsfv 8207cf8d94 Changing ERROR to DEBUG for non existing registers 2019-08-30 12:00:44 -07:00
1 changed files with 12 additions and 2 deletions

View File

@ -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, &reg_list[0]); current_threadid, reg_num, &reg_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)
&reg_list, &reg_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;
} }
} }