RTLogWriteDebugger-r0drv-solaris.c revision 938b940adaf22f70c928744152e2d49d8b103f0d
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync/* $Id$ */
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync/** @file
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * IPRT - Log To Debugger, Ring-0 Driver, Solaris.
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync */
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync/*
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync *
d6a3b3f1074091d84f98d24920738cb63ba1c507vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * available from http://www.virtualbox.org. This file is free software;
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * you can redistribute it and/or modify it under the terms of the GNU
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * General Public License (GPL) as published by the Free Software
d6a3b3f1074091d84f98d24920738cb63ba1c507vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
d6a3b3f1074091d84f98d24920738cb63ba1c507vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d6a3b3f1074091d84f98d24920738cb63ba1c507vboxsync *
ad9cb6f85ccdc5ed06252478ebd1dab3132809a0vboxsync * The contents of this file may alternatively be used under the terms
d6a3b3f1074091d84f98d24920738cb63ba1c507vboxsync * of the Common Development and Distribution License Version 1.0
d6a3b3f1074091d84f98d24920738cb63ba1c507vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "the-solaris-kernel.h"
#include "internal/iprt.h"
#include <iprt/log.h>
#include <iprt/asm.h>
#include <iprt/assert.h>
RTDECL(void) RTLogWriteDebugger(const char *pch, size_t cb)
{
if (pch[cb] != '\0')
AssertBreakpoint();
if ( !g_frtSolarisSplSetsEIF
|| ASMIntAreEnabled())
cmn_err(CE_CONT, pch);
return;
}