1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

prevent gdb from panic'ing an alpha with "mutex Giant not owned"

reviewed by: jhb
This commit is contained in:
Andrew Gallatin 2001-03-16 21:44:21 +00:00
parent eeba0d1008
commit 283da0012f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74366

View File

@ -335,8 +335,10 @@ trap(a0, a1, a2, entry, framep)
case ALPHA_IF_CODE_BPT:
case ALPHA_IF_CODE_BUGCHK:
if (p->p_md.md_flags & (MDP_STEP1|MDP_STEP2)) {
mtx_lock(&Giant);
ptrace_clear_single_step(p);
p->p_md.md_tf->tf_regs[FRAME_PC] -= 4;
mtx_unlock(&Giant);
}
ucode = a0; /* trap type */
i = SIGTRAP;