8#ifndef PXR_ARCH_DEBUGGER_H
9#define PXR_ARCH_DEBUGGER_H
14#include "pxr/arch/pxr.h"
15#include "pxr/arch/api.h"
18ARCH_NAMESPACE_OPEN_SCOPE
87#if defined(ARCH_COMPILER_GCC) || defined(ARCH_COMPILER_CLANG)
88#define ARCH_DEBUGGER_TRAP do { ARCH_NS::ArchDebuggerTrap(); asm(""); } while (0)
90#define ARCH_DEBUGGER_TRAP do { ARCH_NS::ArchDebuggerTrap(); } while (0)
93ARCH_NAMESPACE_CLOSE_SCOPE
Define function attributes.
#define ARCH_NOINLINE
Macro used to indicate that a function should never be inlined.
Definition attributes.h:59
bool ArchDebuggerIsAttached() ARCH_NOINLINE
Test if a debugger is attached.
void ArchAbort(bool logging=true)
Abort.
void ArchDebuggerTrap() ARCH_NOINLINE
Stop in a debugger.
bool ArchDebuggerAttach() ARCH_NOINLINE
Attach a debugger.
void ArchDebuggerWait(bool wait)
Cause debug traps to wait for the debugger or not.