aboutsummaryrefslogtreecommitdiff
path: root/options.c
AgeCommit message (Collapse)Author
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
2009-07-23Clarified debug levels (try --debug=help)Juan Cespedes
2009-07-03Some minor fixesJuan Cespedes
2009-06-25Re-organize file namesJuan Cespedes
2009-05-28Created library "libltrace.a" and a simple program that calls itJuan Cespedes
2009-05-14better debugging support (-d option)Juan Cespedes
2009-05-06almost there...Juan Cespedes
2009-04-07More fields to struct "options", same output with or without -oJuan Cespedes
(opt_s, opt_f)
2009-04-07More fields to struct "options"Juan Cespedes
(opt_c, opt_d, opt_A)
2009-04-07Documentation, small fixesJuan Cespedes
2009-04-07Year of copyright change (2008 -> 2009)Juan Cespedes
2008-12-16More fields to struct "options"Juan Cespedes
Substituted opt_* with options.indent, options.output
2008-12-16Added global struct "options"Juan Cespedes
Substituted opt_* with options.align, options.user, options.syscalls, options.libcalls, options.demangle
2008-12-16Re-indent entry points to functionsJuan Cespedes
2008-12-10Updated year in copyright (2007 -> 2008)Juan Cespedes
2007-08-31Some random fixesJuan Cespedes
* General: Small fixes (indentation, typos, clean-up of code) * ltrace.c: Close output file on exit * ltrace.c: use getenf("HOME") instead of getpwuid(geteuid())->pw_dir * read_config_file.c, display_args.c: remove "ignore" argtype; that's what "void" is for * packaging/debian/: misc fixes, sync with version 0.5-1 * etc/ltrace.conf: added more system calls * testsuite/ltrace.minor/trace-clone.c: sleep(1) to avoid earlier termination of process * sysdeps/linux-gnu/trace.c: trace_pid(): reverted Petr's patch to wait for child to stop, as it stopped following clone() * process_event.c: Disable breakpoints before doing fork() (again!), to make children work as expected
2006-10-12options.c: fix up typo for config fileOlaf Hering