VirtualBox

Changeset 40504 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 16, 2012 4:38:06 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76890
Message:

Solaris 11 build fixes.

File:
1 edited

Legend:

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

    r39037 r40504  
    189189/** @def ASMBreakpoint
    190190 * Debugger Breakpoint.
    191  * @remark  In the gnu world we add a nop instruction after the int3 to
    192  *          force gdb to remain at the int3 source line.
    193  * @remark  The L4 kernel will try make sense of the breakpoint, thus the jmp.
    194  * @internal
    195  */
    196 #if RT_INLINE_ASM_GNU_STYLE
    197 # if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    198 #  ifndef __L4ENV__
    199 #   define ASMBreakpoint()      do { __asm__ __volatile__("int3\n\tnop"); } while (0)
    200 #  else
    201 #   define ASMBreakpoint()      do { __asm__ __volatile__("int3; jmp 1f; 1:"); } while (0)
    202 #  endif
    203 # elif defined(RT_ARCH_SPARC64)
    204 #  define ASMBreakpoint()       do { __asm__ __volatile__("illtrap 0\n\t") } while (0)  /** @todo Sparc64: this is just a wild guess. */
    205 # elif defined(RT_ARCH_SPARC)
    206 #  define ASMBreakpoint()       do { __asm__ __volatile__("unimp 0\n\t"); } while (0)   /** @todo Sparc: this is just a wild guess (same as Sparc64, just different name). */
    207 # else
    208 #  error "PORTME"
    209 # endif
    210 #else
    211 # define ASMBreakpoint()        __debugbreak()
    212 #endif
     191 * @deprecated Use RT_BREAKPOINT instead.
     192 * @internal
     193 */
     194#define ASMBreakpoint() RT_BREAKPOINT()
    213195
    214196
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