From fe0c58e5fbaa37668779ec10d2761e6657b824f4 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 9 Sep 2024 22:58:51 +0200 Subject: initial commit of libbt --- example/raise1.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 example/raise1.c (limited to 'example/raise1.c') diff --git a/example/raise1.c b/example/raise1.c new file mode 100644 index 0000000..a0be4f5 --- /dev/null +++ b/example/raise1.c @@ -0,0 +1,17 @@ +#include + +// Raise from main thread. + +void foo() { + raise(SIGSEGV); +} +void bar() { + foo(); +} +void qux() { + bar(); +} + +int main() { + qux(); +} -- cgit v1.2.3