VirtualBox

Changeset 70340 in vbox


Ignore:
Timestamp:
Dec 26, 2017 2:41:01 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119940
Message:

iprt/RTAssertShouldPanic-generic.cpp: handy debug trick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/RTAssertShouldPanic-generic.cpp

    r69111 r70340  
    3232#include "internal/iprt.h"
    3333
     34#ifdef IN_RING
     35# if 0
     36#  include <iprt/asm.h>
     37#  include <iprt/asm-amd64-x86.h>
     38# endif
     39#endif
     40
    3441
    3542RTDECL(bool) RTAssertShouldPanic(void)
    3643{
     44#ifdef IN_RING0
     45# if 0 /* this can be useful when debugging guests. */
     46    ASMIntDisable();
     47    ASMHalt();
     48# endif
     49#endif
    3750#if 0 /* Enable this to not panic on assertions. (Make sure this code is used!) */
    3851    return false;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette