Merge a28e713067
into 67082829da
This commit is contained in:
commit
80a370b1e9
|
@ -1889,8 +1889,11 @@ static int handle_halt(struct target *target, bool announce)
|
|||
|
||||
if (target->debug_reason == DBG_REASON_BREAKPOINT) {
|
||||
int retval;
|
||||
if (riscv_semihosting(target, &retval) != 0)
|
||||
return retval;
|
||||
/* Don't try to handle semihosting before the target
|
||||
* gets successfully examined. */
|
||||
if (target_was_examined(target))
|
||||
if (riscv_semihosting(target, &retval) != SEMIHOSTING_NONE)
|
||||
return retval;
|
||||
}
|
||||
|
||||
if (announce)
|
||||
|
|
Loading…
Reference in New Issue