Fix style issues

This commit is contained in:
Craig Blackmore 2018-07-23 10:44:20 +01:00
parent e2717e4cfa
commit 43e7e4b60a
2 changed files with 4 additions and 5 deletions

View File

@ -1852,9 +1852,8 @@ static int handle_halt(struct target *target, bool announce)
* which watchpoint to step over. Setting need_strict_step to true
* flags OpenOCD to disable triggers -> step -> enable triggers on
* the next step or resume*/
if (! riscv_breakpoint_hit(target, 0, info->dpc)) {
if (!riscv_breakpoint_hit(target, 0, info->dpc))
info->need_strict_step = true;
}
break;
case DCSR_CAUSE_DEBUGINT:
target->debug_reason = DBG_REASON_DBGRQ;

View File

@ -2032,12 +2032,12 @@ bool riscv_breakpoint_hit(struct target *target, int hartid, uint64_t dpc)
if (tdata2 == dpc) {
LOG_DEBUG("breakpoint %d matches dpc", t);
hit = true;
break;
hit = true;
break;
}
}
// restore tselect
/* restore tselect */
riscv_set_register_on_hart(target, hartid, GDB_REGNO_TSELECT, tselect);
LOG_DEBUG("no breakpoint matches dpc");