diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c9ad9b9..dc20202d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -622,7 +622,7 @@ endif () ############################################################################### -foreach (tool backtrace cpuid log poisson macro scratch) +foreach (tool backtrace cpuid crash log poisson macro scratch) add_executable (util_${tool} tools/${tool}.cpp) set_target_properties (util_${tool} PROPERTIES OUTPUT_NAME ${tool}) target_link_libraries (util_${tool} cruft) diff --git a/tools/crash.cpp b/tools/crash.cpp new file mode 100644 index 00000000..2f6ba28b --- /dev/null +++ b/tools/crash.cpp @@ -0,0 +1,7 @@ +#include + +int main () +{ + cruft::debug::init (); + return *reinterpret_cast (0x01); +} \ No newline at end of file