From bdc9b8583e6336bb3a44a80f10bac8b7b369719c Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 15 Aug 2015 16:43:24 +0200 Subject: kern: disable the simple lock checks while debugging * kern/lock.c (do_check_simple_locks): New variable. (check_simple_locks): Make check conditional. (check_simple_locks_{en,dis}able): New functions. * kern/lock.h (check_simple_locks_{en,dis}able): New declarations. * ddb/db_trap.c (db_task_trap): Disable simple lock checks. --- ddb/db_trap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ddb') diff --git a/ddb/db_trap.c b/ddb/db_trap.c index 7e10731..cbb6bde 100644 --- a/ddb/db_trap.c +++ b/ddb/db_trap.c @@ -45,6 +45,7 @@ #include #include #include +#include extern jmp_buf_t *db_recover; @@ -65,6 +66,8 @@ db_task_trap( boolean_t watchpt; task_t task_space; + check_simple_locks_disable(); + task_space = db_target_space(current_thread(), user_space); bkpt = IS_BREAKPOINT_TRAP(type, code); watchpt = IS_WATCHPOINT_TRAP(type, code); @@ -97,6 +100,7 @@ db_task_trap( db_command_loop(); } + check_simple_locks_enable(); db_restart_at_pc(watchpt, task_space); } -- cgit v1.2.3