Merge pull request #199 from riscv/regname
Mention register name instead of number in error
This commit is contained in:
commit
6e278cded6
|
@ -1913,7 +1913,7 @@ static int riscv013_get_register(struct target *target,
|
||||||
} else {
|
} else {
|
||||||
result = register_read_direct(target, value, rid);
|
result = register_read_direct(target, value, rid);
|
||||||
if (result != ERROR_OK) {
|
if (result != ERROR_OK) {
|
||||||
LOG_ERROR("Unable to read register %d", rid);
|
LOG_ERROR("Unable to read %s", gdb_regno_name(rid));
|
||||||
*value = -1;
|
*value = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue