From 15f75d157c6ec6118f7800a433c13e2347632b92 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 19 May 2006 22:49:24 +0000 Subject: Added backtrace when WeeChat crashes --- src/common/backtrace.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/common/backtrace.h (limited to 'src/common/backtrace.h') diff --git a/src/common/backtrace.h b/src/common/backtrace.h new file mode 100644 index 000000000..67e3751dc --- /dev/null +++ b/src/common/backtrace.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2003-2006 by FlashCode + * See README for License detail, AUTHORS for developers list. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __WEECHAT_BACKTACE_H +#define __WEECHAT_BACKTACE_H 1 + +#define BACKTRACE_MAX 128 + +extern void weechat_backtrace (); + +#endif /* backtrace.h */ -- cgit v1.2.3