Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/elfutils/elfutils-backtrace-test-printf-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/elfutils/elfutils-backtrace-test-printf-fix.patch')
-rw-r--r--core/elfutils/elfutils-backtrace-test-printf-fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/elfutils/elfutils-backtrace-test-printf-fix.patch b/core/elfutils/elfutils-backtrace-test-printf-fix.patch
new file mode 100644
index 00000000..f8fa3784
--- /dev/null
+++ b/core/elfutils/elfutils-backtrace-test-printf-fix.patch
@@ -0,0 +1,11 @@
+--- elfutils-0.176/tests/backtrace.c 2019-02-15 16:46:47.000000000 +0100
++++ elfutils-git/tests/backtrace.c 2019-07-29 17:43:34.963057739 +0200
+@@ -185,7 +185,7 @@
+ symname = dwfl_module_addrname (mod, pc_adjusted);
+
+ printf ("#%2d %#" PRIx64 "%4s\t%s\n", *framenop, (uint64_t) pc,
+- ! isactivation ? "- 1" : "", symname);
++ ! isactivation ? "- 1" : "", symname ?: "<null>");
+ pid_t tid = dwfl_thread_tid (thread);
+ callback_verify (tid, *framenop, pc, symname, dwfl);
+ (*framenop)++;