X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctrace.C;h=930eabfc50f6bf562969812b3810c664e6782c75;hb=b30123c9534e8df8da1694d40396d86396bf1c08;hp=027379bcad5faf867cb2d0e0d6acc32da51ba5d3;hpb=74afbc29ac4ce9d94d53e10342979f2c59f1f193;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bctrace.C b/cinelerra-5.1/guicast/bctrace.C index 027379bc..930eabfc 100644 --- a/cinelerra-5.1/guicast/bctrace.C +++ b/cinelerra-5.1/guicast/bctrace.C @@ -5,6 +5,21 @@ #include "bctrace.h" +#ifdef BOOBY +#include +#define BT_BUF_SIZE 100 +// booby trap (backtrace) +void booby() { + printf("BOOBY!\n"); + void *buffer[BT_BUF_SIZE]; + int nptrs = backtrace(buffer, BT_BUF_SIZE); + char **trace = backtrace_symbols(buffer, nptrs); + if( !trace ) return; + for( int i=0; i