summaryrefslogtreecommitdiff
path: root/src/journal/stacktrace.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-19 12:07:12 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-19 12:38:45 +0200
commit8d4e028f1868c47864ec873d9f30c3ee961a8849 (patch)
tree8a16e81f48f49c2d5aa210d8992f0c7d4a8470c2 /src/journal/stacktrace.h
parent8271bd16ce9327834d8580e55bb5e4e0896fd98a (diff)
coredump: include stacktrace of coredumps in the log message
elfutils' libdw is maintained, can read DWARF debug data and appears to be the library of choice for generating backtraces today.
Diffstat (limited to 'src/journal/stacktrace.h')
-rw-r--r--src/journal/stacktrace.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/journal/stacktrace.h b/src/journal/stacktrace.h
new file mode 100644
index 0000000000..189e5c4597
--- /dev/null
+++ b/src/journal/stacktrace.h
@@ -0,0 +1,24 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+#pragma once
+
+/***
+ This file is part of systemd.
+
+ Copyright 2014 Lennart Poettering
+
+ systemd is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
+ (at your option) any later version.
+
+ systemd 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
+
+int coredump_make_stack_trace(int fd, const char *executable, char **ret);