X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctrace.C;h=930eabfc50f6bf562969812b3810c664e6782c75;hp=70c7a406ef08f9af5c1509b89478c8dd7fb78cda;hb=b9f98da8f1cd8b7b31ead02fa41f299b56cac3da;hpb=89205d2d9298c3e37b4dd60a9dab1e3a1bdafae7 diff --git a/cinelerra-5.1/guicast/bctrace.C b/cinelerra-5.1/guicast/bctrace.C index 70c7a406..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