aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/mips/mips/trap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c
index 0938cf2f06da..492134073ea3 100644
--- a/sys/mips/mips/trap.c
+++ b/sys/mips/mips/trap.c
@@ -840,6 +840,7 @@ dofault:
if (td->td_md.md_ss_addr != va ||
instr != MIPS_BREAK_SSTEP) {
i = SIGTRAP;
+ ucode = TRAP_BRKPT;
addr = trapframe->pc;
break;
}
@@ -851,6 +852,7 @@ dofault:
*/
addr = trapframe->pc;
i = SIGTRAP;
+ ucode = TRAP_TRACE;
break;
}
@@ -865,6 +867,7 @@ dofault:
va += sizeof(int);
printf("watch exception @ %p\n", (void *)va);
i = SIGTRAP;
+ ucode = TRAP_BRKPT;
addr = va;
break;
}