aboutsummaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorJoe Damato <ice799@gmail.com>2010-10-31 00:21:53 -0700
committerJoe Damato <ice799@gmail.com>2010-11-28 20:07:59 -0800
commitab3b72cc5d2d3efb3542192f0d72ff2ea4b082f9 (patch)
treeeedc78342e1453196541350e676a9a6e71056b02 /options.h
parent401eee6f5e119b642d1f56380ff0414ad5cb669e (diff)
downloadltrace-ab3b72cc5d2d3efb3542192f0d72ff2ea4b082f9.tar.gz
Add -w/--where to show backtraces of traced functions.
- add libunwind as a dep to configure - add a command line option to show backtraces from traced library functions - best guess at autoconf stuff, seems to work x86_64 and i686 - NOT TESTED ON ANY OTHER PLATFORMS!
Diffstat (limited to 'options.h')
-rw-r--r--options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.h b/options.h
index e2d0e7f..d171c4b 100644
--- a/options.h
+++ b/options.h
@@ -16,6 +16,9 @@ struct options_t {
int follow; /* trace child processes */
int no_plt; /* set bps on PLT entries */
int no_signals; /* don't print signals */
+#if defined(HAVE_LIBUNWIND)
+ int bt_depth; /* how may levels of stack frames to show */
+#endif /* defined(HAVE_LIBUNWIND) */
};
extern struct options_t options;