Try saving the halted state when examining a target
This commit is contained in:
parent
9b19e10f8d
commit
f1e8dee522
|
@ -692,7 +692,11 @@ static int riscv_examine(struct target *target)
|
||||||
if (result != ERROR_OK)
|
if (result != ERROR_OK)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
return tt->examine(target);
|
int result = tt->examine(target);
|
||||||
|
if (result != ERROR_OK)
|
||||||
|
return result;
|
||||||
|
|
||||||
|
target->state = riscv_is_halted(target) ? TARGET_HALTED : TARGET_RUNNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int oldriscv_poll(struct target *target)
|
static int oldriscv_poll(struct target *target)
|
||||||
|
|
Loading…
Reference in New Issue