satyr/0003-elfutils-Add-missing-stubs-from-earlier-commit.patch

47 lines
1.7 KiB
Diff
Raw Normal View History

From c932a8e85f8306c03618628b1cc8fcfd39d820b0 Mon Sep 17 00:00:00 2001
From: Wes Lindauer <wesley.lindauer@gmail.com>
Date: Mon, 14 Aug 2017 16:31:03 -0400
Subject: [PATCH] elfutils: Add missing stubs from earlier commit
Commit f749d97f060e3c287eb700636790d61337b73eae added new functions
*_core_hook_prepare and *_core_hook_generate to replace a single
function *_core_hook. The *_core_hook was already stubbed out when
WITH_LIBDWFL or PTRACE_SEIZE was not defined, but the new commit did not
add matching stubs for the new functions that replaced it.
---
lib/core_unwind.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/lib/core_unwind.c b/lib/core_unwind.c
index e6dfc1c..1145df3 100644
--- a/lib/core_unwind.c
+++ b/lib/core_unwind.c
@@ -57,6 +57,24 @@ sr_parse_coredump(const char *coredump_filename,
#if (!defined WITH_LIBDWFL || !defined PTRACE_SEIZE)
+struct sr_core_stracetrace_unwind_state *
+sr_core_stacktrace_from_core_hook_prepare(pid_t thread_id, char **error_message)
+{
+ *error_message = sr_asprintf("satyr is built without live process unwind support");
+ return NULL;
+}
+
+struct sr_core_stacktrace *
+sr_core_stacktrace_from_core_hook_generate(pid_t thread_id,
+ const char *executable_filename,
+ int signum,
+ struct sr_core_stracetrace_unwind_state *state,
+ char **error_message)
+{
+ *error_message = sr_asprintf("satyr is built without live process unwind support");
+ return NULL;
+}
+
struct sr_core_stacktrace *
sr_core_stacktrace_from_core_hook(pid_t thread_id,
const char *executable_filename,
--
2.13.6