summaryrefslogtreecommitdiff
path: root/core/elfutils/elfutils-backtrace-test-printf-fix.patch
blob: f8fa378455a64d1e15ce9c887c9225801738a08b (plain)
1
2
3
4
5
6
7
8
9
10
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)++;