wvcrash.h

00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * Routines to generate a stack backtrace automatically when a program
00006  * crashes.
00007  */
00008 #ifndef __WVCRASH_H
00009 #define __WVCRASH_H
00010 
00011 #include <sys/types.h>
00012 
00013 void wvcrash_setup(const char *_argv0, const char *_desc = 0);
00014 void wvcrash(int sig);
00015 void wvcrash_add_signal(int sig);
00016 
00017 // Leave a last will and testament in the WvCrash, if your program dies.
00018 void wvcrash_leave_will(const char *will);
00019 // Read the will back.
00020 const char *wvcrash_read_will();
00021 // Read the assertion back.
00022 const char *wvcrash_read_assert();
00023 
00024 const int wvcrash_ring_buffer_order = 12;
00025 const int wvcrash_ring_buffer_size = 1 << wvcrash_ring_buffer_order;
00026 void wvcrash_ring_buffer_put(const char *str);
00027 void wvcrash_ring_buffer_put(const char *str, size_t len);
00028 const char *wvcrash_ring_buffer_get();
00029 
00030 #endif // __WVCRASH_H

Generated on Fri Oct 5 18:20:27 2007 for WvStreams by  doxygen 1.5.3