aboutsummaryrefslogtreecommitdiff
path: root/options.c
AgeCommit message (Collapse)Author
2014-02-28Add --config to man, drop -X from options.cPetr Machata
2014-01-14Manpage and --help clarificationsPetr Machata
2014-01-10Add support for using elfutils as unwinder.Mark Wielaard
This adds support for using elfutils as unwinder with -w. Since elfutils 0.158 elfutils contains a simple unwinder interface that matches nicely on the ltrace backtrace support. The code reuses the libunwind infrastructure already in ltrace where possible (by defining HAVE_UNWINDER which is 1 if either libunwind or elfutils is used). It also reuses the ltrace proc_add_library callback to keep track of the ELF files mapped for the unwinder. The current implementation matches the output as if libunwind was used. But elfutils can also provide some more information since it can lookup the DWARF debuginfo. So if the source info of an address can be found through elfutils the backtrace will also include this as an additional output line per frame.
2013-10-23Update copyright years in options.cPetr Machata
2013-03-12Do not ignore rules after '+'Petr Machata
2013-03-08Better error messages when rule compilation failsPetr Machata
2013-03-08In opt_F_get_kind, allow symbolic linksPetr Machata
lstat should see through them, but bash process substitution produces files that report themselves as symlinks even to lstat.
2013-03-08Convert opt_F_t to support directories as well as files, store in vectorPetr Machata
Also allow parsing colon-separated lists into opt_F. This will be useful for -F as well as for parsing some environment variables. This removes bits related to default directories to look into. This will eventually be moved to os_get_config_dirs, currently it's simply disabled. The code in libltrace.c is currently incompatible with opt_F being a vector, so it's disabled as well. Revamp of the whole configury shebang underway.
2013-03-08Move demangling-related code from common.h to demangle.hPetr Machata
Adjust users accordingly.
2013-02-14Fix build with Clang on FreeBSDAndrey Zonov
2013-01-11Update documentationPetr Machata
- Add several missing options to synopsis in ltrace.1 - Synchronize naming of arguments between ltrace.1 and --help - Fix formatting in ltrace.1 -- argument names should be in emphasis, only the argument metavariables should.
2012-12-15Update the --version string to be in sync with what's in GNU coding stylePetr Machata
Also add myself (or rather Red Hat) as a copyright holder.
2012-12-10Don't rely on availability of getopt_longPetr Machata
2012-12-10Avoid using REG_NOERRORPetr Machata
Not all systems define this (IRIX 6.5 doesn't). Comparing to 0 is not terribly less readable, so do that instead.
2012-11-30Fix handling options with integral argumentsPetr Machata
Also adjust the way -w is described in --help to be consistent with other options that accept arguments.
2012-11-09In globcomp, use REG_NOERROR instead of literal 0Petr Machata
Hopefully this will make it clearer that the protocol is different than everywhere else in ltrace, where <0 is error condition.
2012-10-27Plug a leak in parse_filter_chainPetr Machata
2012-10-27Fix memory handling of -F argumentsPetr Machata
This plugs a leak.
2012-10-26Update copyright information and license headersPetr Machata
2012-10-01Add parsing of -l optionPetr Machata
2012-10-01Extract code for parsing library pattern and turning it into regexPetr Machata
2012-09-25Fix several error messagesPetr Machata
2012-09-03Remove remnants of PLT_REINITIALISATION_BPPetr Machata
This was only ever used for PowerPC, which doesn't need it anymore.
2012-09-03Drop the line mentioning --no-plt from --helpPetr Machata
2012-05-03Better checking for -n argumentPetr Machata
2012-04-25Replace some uses of error with fprintfPetr Machata
error is not standard so it has no business being used in generic code. The linux-gnu back end is useful for android, and that doesn't have that interface either.
2012-04-23Support '!' in filter syntax for backward compatibilityPetr Machata
We already have support for initial '-', so this can be trivially translated
2012-04-23Don't support ',' in filters, support '+'Petr Machata
The '+' operator is technically not necessary, but it might be useful for intuition.
2012-04-19Fix filteringPetr Machata
2012-04-19Warn that -l is not implemented, but carry onPetr Machata
2012-04-19Use error to report errors in options.cPetr Machata
2012-04-19Require that -e and -x expressions match the whole symbol or library namePetr Machata
Since "regexec" doesn't have a flag for that, smuggle initial ^ and terminating $ to each expression (globs as well as regular expressions).
2012-04-19Drop leftover fprintf'sPetr Machata
- convert some to debug or error calls
2012-04-19Drop options.libcalls (but keep -L support)Petr Machata
- -L becomes just a way of configuring options.plt_filter default
2012-04-19options.no_plt is uselessPetr Machata
- or, as of now, it's used to decide whether or not we should display "unexpected breakpoint" messages
2012-04-19Elementary support for -xPetr Machata
- this is applied across libraries. Syntax for the -x option is the same as for -e - this fails on symbol aliases. E.g. there are several symbols named like strlen in libc: strlen, __GI_strlen, and perhaps others. This needs to be taken into account, and symbol aliases shouldn't be enabled if they were added under a different name already
2012-04-19Don't create PLT symbols that don't match filtering criteriaPetr Machata
- instead of creating them, keeping them around, and then just not enabling breakpoints for them
2012-04-19Fix memory bugsPetr Machata
2012-04-19Hide caller unless custom -e is passedPetr Machata
2012-04-19Implement @MAIN, @/path/name -e selectors, make former default for nowPetr Machata
- the default might become "*" in future, but keep things more or less the same as they always were for now
2012-04-19Fix bugs in filter code, enable filtering according to -e settingPetr Machata
2012-04-19Drop opt_e{,_t,_enable}, use filter.h/.c to implement -e parsingPetr Machata
2012-04-19The first crude version of tracing across librariesPetr Machata
- the patch will be sliced later
2010-12-10Fix building with --enable-debugZachary T Welch
Numerous warnings had snuck into the build, preventing ltrace from building with --enable-debug (which uses -Wall, -Werror, and more). This patch fixes the problems, mostly caused by -Wsign-compare. Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
2010-11-28Cleanup and documentation.Joe Damato
- clean up options a bit to alphabetize things :) - add documentation to the man page for added options which were missing docs - removed the lib-dl caveat
2010-11-28Keep a count of the number of -x options passed on the command line.Joe Damato
2010-11-28Add -w/--where to show backtraces of traced functions.Joe Damato
- 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!
2010-11-28Add -b, --no-signals to silence signal print outs.Joe Damato
2010-11-28Merge -g option which avoids tracing libraries linked at compile time.Joe Damato
2009-07-25Finally got rid of GNU's Autoconf stuffJuan Cespedes