summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorLuca Clementi <luca.clementi@gmail.com>2014-01-03 22:05:03 -0800
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:24 +0900
commit9c90cdba352e1cb9dbfae3659c71664dba4b3904 (patch)
tree0e094656709717c783e4657d45836f919773c594 /proc.h
parent5fc7b8674b59bd6e2c8ff734f4e5362df8795617 (diff)
downloadltrace-9c90cdba352e1cb9dbfae3659c71664dba4b3904.tar.gz
ltrace-9c90cdba352e1cb9dbfae3659c71664dba4b3904.tar.bz2
ltrace-9c90cdba352e1cb9dbfae3659c71664dba4b3904.zip
check return value of unw_get_reg and unw_get_proc_name
Before printng the current procedure name and IP verify their validity
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 64f8fe2..35943c3 100644
--- a/proc.h
+++ b/proc.h
@@ -30,6 +30,7 @@
#if defined(HAVE_LIBUNWIND)
# include <libunwind.h>
+# include <libunwind-ptrace.h>
#endif /* defined(HAVE_LIBUNWIND) */
#include "ltrace.h"