This is an archive of the discontinued LLVM Phabricator instance.

Add an LLVM_BUILTIN_DEBUGTRAP macro.
AbandonedPublic

Authored by rudkx on Mar 8 2016, 6:06 PM.

Details

Reviewers
dblaikie
Summary

This provides a macro that expands to builtin_debugtrap() for clang,
and
debugbreak() for MSVC.

It intentionally expands to nothing for compilers that do not support a
similar mechanism that halts the debugger without otherwise crashing the
process.

Diff Detail

Event Timeline

rudkx updated this revision to Diff 50098.Mar 8 2016, 6:06 PM
rudkx retitled this revision from to Add an LLVM_BUILTIN_DEBUGTRAP macro..
rudkx updated this object.
rudkx added a reviewer: dblaikie.
rudkx abandoned this revision.Mar 9 2016, 10:53 AM

I don't think this ever went out to llvm-commits, so I'm going to re-open with llvm-commits as a subscriber when opening.