summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-11 17:18:33 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-11 17:18:33 +0100
commit704080f3e67bd2311508e5632f68ef1f41f91ac5 (patch)
tree50f8160ac2edd9255c92191a6bc944868ef3b24f
parent7b19da60f63fc060d90e1bd62b128ca10b1c6628 (diff)
Create backtrace.h.
2008-12-11 Neal H. Walfield <neal@gnu.org> * backtrace.h: New file.
-rw-r--r--libc-parts/ChangeLog4
-rw-r--r--libc-parts/backtrace.h26
2 files changed, 30 insertions, 0 deletions
diff --git a/libc-parts/ChangeLog b/libc-parts/ChangeLog
index a2df03e..38a6c80 100644
--- a/libc-parts/ChangeLog
+++ b/libc-parts/ChangeLog
@@ -1,5 +1,9 @@
2008-12-11 Neal H. Walfield <neal@gnu.org>
+ * backtrace.h: New file.
+
+2008-12-11 Neal H. Walfield <neal@gnu.org>
+
* headers.m4: Create sysroot/lib/libssp.a and
sysroot/lib/libssp-nonshared.a.
* stack-protector.c: New file.
diff --git a/libc-parts/backtrace.h b/libc-parts/backtrace.h
new file mode 100644
index 0000000..644d105
--- /dev/null
+++ b/libc-parts/backtrace.h
@@ -0,0 +1,26 @@
+/* backtrace.h - Gather a backtrace.
+ Copyright (C) 2008 Free Software Foundation, Inc.
+ Written by Neal H. Walfield <neal@gnu.org>.
+
+ The GNU Hurd 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 3 of the
+ License, or (at your option) any later version.
+
+ The GNU Hurd 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, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _BACKTRACE_H
+#define _BACKTRACE_H
+
+extern int backtrace (void **array, int size);
+
+extern void backtrace_print (void);
+
+#endif