VirtualBox

Changeset 4917 in vbox for trunk/include/iprt/assert.h


Ignore:
Timestamp:
Sep 20, 2007 10:06:48 AM (17 years ago)
Author:
vboxsync
Message:

Don't trigger breakpoints in ring 0. (AssertRelease & co)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/assert.h

    r4071 r4917  
    496496# endif
    497497#elif defined(_MSC_VER)
    498 # define AssertReleaseBreakpoint()      __debugbreak()
     498# ifdef IN_VMM_R0
     499#  define AssertReleaseBreakpoint()      RTR0AssertBreakpoint(pVM)
     500# else
     501#  define AssertReleaseBreakpoint()      __debugbreak()
     502# endif
    499503#else
    500504# error "Unknown compiler"
     
    11841188
    11851189
     1190/**
     1191 * Ring 0 VMM breakpoint function.
     1192 *
     1193 * Generates a guru meditation
     1194 *
     1195 * @remark does not return
     1196 */
     1197RTDECL(void)    RTR0AssertBreakpoint(void *pVM);
     1198
    11861199/** The last assert message, 1st part. */
    11871200extern RTDATADECL(char) g_szRTAssertMsg1[1024];
Note: See TracChangeset for help on using the changeset viewer.

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