Unbreak syscons' support for ddb mode by reactivating old fixes
(syscons.c 1.331 and 1.372 are reactivated by restoring this part of db_interface.c (i386 version 1.48, ...) in a different file). This is not a MFC because larger changes than I have time for are needed there. The most noticeable effect of this fix is that syscons switches to the console vty on entry to ddb. The most important effect of this fix is that switching vtys in ddb doesn't try (and sometimes succeed) to crash the system by calling wakeup(). Approved by: re (hrs)
This commit is contained in:
parent
f122a7f204
commit
3589a333ca
@ -198,6 +198,7 @@ db_trap(int type, int code)
|
||||
if (cnunavailable())
|
||||
return (0);
|
||||
|
||||
cndbctl(TRUE);
|
||||
bkpt = IS_BREAKPOINT_TRAP(type, code);
|
||||
watchpt = IS_WATCHPOINT_TRAP(type, code);
|
||||
|
||||
@ -224,5 +225,6 @@ db_trap(int type, int code)
|
||||
|
||||
db_restart_at_pc(watchpt);
|
||||
|
||||
cndbctl(FALSE);
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user