Change invalid access from error to user message.

It's not a failure in the debugger or even a real problem if a user asks
to access memory that's not accessible.

Change-Id: I30b8424d5265d1996fe4826012ed160a83f0bc6c
__archive__
Tim Newsome 2016-10-03 08:15:04 -07:00
parent e273e23f41
commit a08cef7633
1 changed files with 2 additions and 2 deletions

View File

@ -2249,10 +2249,10 @@ static int riscv_read_memory(struct target *target, uint32_t address,
}
if (result_value != 0) {
LOG_ERROR("Core got an exception (0x%x) while reading from 0x%x",
LOG_USER("Core got an exception (0x%x) while reading from 0x%x",
result_value, address + size * (count-1));
if (count > 1) {
LOG_ERROR("(It may have failed between 0x%x and 0x%x as well, but we "
LOG_USER("(It may have failed between 0x%x and 0x%x as well, but we "
"didn't check then.)",
address, address + size * (count-2) + size - 1);
}