diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-09-09 22:58:51 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-09-09 22:58:51 +0200 |
commit | fe0c58e5fbaa37668779ec10d2761e6657b824f4 (patch) | |
tree | 9d13c3764887ec9b3751973d2e402b1e79830c76 /example/raise1.c | |
download | preload-libbt-fe0c58e5fbaa37668779ec10d2761e6657b824f4.tar.gz preload-libbt-fe0c58e5fbaa37668779ec10d2761e6657b824f4.zip |
initial commit of libbt
Diffstat (limited to 'example/raise1.c')
-rw-r--r-- | example/raise1.c | 17 |
1 files changed, 17 insertions, 0 deletions
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 <signal.h> + +// Raise from main thread. + +void foo() { + raise(SIGSEGV); +} +void bar() { + foo(); +} +void qux() { + bar(); +} + +int main() { + qux(); +} |