Add gdb_report_register_access_error command
This replaces the earlier mechanism which would propagate errors only for targets that decided they wanted to. It was suggested by Matthias Welwarsky from the OpenOCD team. Change-Id: Ibe8e97644abb47aff26d74b8280377d42615a4d3
This commit is contained in:
@@ -247,7 +247,6 @@ static int riscv_init_target(struct command_context *cmd_ctx,
|
||||
struct target *target)
|
||||
{
|
||||
LOG_DEBUG("riscv_init_target()");
|
||||
target->propagate_register_errors = true;
|
||||
target->arch_info = calloc(1, sizeof(riscv_info_t));
|
||||
if (!target->arch_info)
|
||||
return ERROR_FAIL;
|
||||
|
||||
@@ -204,14 +204,6 @@ struct target {
|
||||
|
||||
/* file-I/O information for host to do syscall */
|
||||
struct gdb_fileio_info *fileio_info;
|
||||
|
||||
/**
|
||||
* When true, send gdb an error result when reading/writing a register
|
||||
* fails. This must be false for some ARM targets (Cortex-M3), where a 'g'
|
||||
* packet results in an attempt to read 'r0', which fails, which causes gdb
|
||||
* to close the connection.
|
||||
*/
|
||||
bool propagate_register_errors;
|
||||
};
|
||||
|
||||
struct target_list {
|
||||
|
||||
Reference in New Issue
Block a user