Esempio n. 1
0
 bool EnableInProcessStackDumping()
 {
     // Add stack dumping support on exception on windows. Similar to OS_POSIX
     // signal() handling in process_util_posix.cc.
     g_previous_filter = SetUnhandledExceptionFilter(&StackDumpExceptionFilter);
     AttachToConsole();
     return true;
 }
Esempio n. 2
0
/* virtual */ void
SystemControl::init(uval bufSize)
{
    lock.init();
    sem.init(0);
    IORingBuffer::init(bufSize);

    int rc;
    char * const varname = "K42_LOGIN_CONSOLE";
    char buf[256];
    rc = KBootParms::_GetParameterValue(varname, buf, 256);
    /*
     * The K42_LOGIN_CONSOLE asks the kernel to start the shell
     * on the console always after booting, and to prevent the
     * test loop from eating the characters fed to that shell
     */
    if (_FAILURE(rc) || buf[0] == '\0') {
	AttachToConsole();
    } else {
	err_printf("Suppressing Console.\n");
    }
}