diff options
author | gallatin <gallatin@FreeBSD.org> | 2001-03-16 21:44:21 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2001-03-16 21:44:21 +0000 |
commit | 4ce4255f83eebf420773e3c0825178f061483066 (patch) | |
tree | a83110a9b67dcdae63101e177d23ab7ea0a6a21e | |
parent | 027c5827dd3271f08835528fb2b3f16e0b1808d0 (diff) | |
download | FreeBSD-src-4ce4255f83eebf420773e3c0825178f061483066.zip FreeBSD-src-4ce4255f83eebf420773e3c0825178f061483066.tar.gz |
prevent gdb from panic'ing an alpha with "mutex Giant not owned"
reviewed by: jhb
-rw-r--r-- | sys/alpha/alpha/trap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c index 3f182e5..e13cb63 100644 --- a/sys/alpha/alpha/trap.c +++ b/sys/alpha/alpha/trap.c @@ -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; |