unwind: initialize unwind context only if given tcb is initialized
With libdw based unwinder, following warnings are reported when -p is passed before -k: $ ./strace -p 1 -k ... ./strace: dwfl_linux_proc_attach returned an error for process 0: No such file or directory ... It seems that commit 54c7792b, "Fix libunwind segfault when -p is passed before -k" doesn't fix the original issue. * strace.c (init) [ENABLE_STACKTRACE]: Initialize unwind context only if given tcb is initialized. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
This commit is contained in:
parent
ee2c065dd4
commit
98d3356b04