aboutsummaryrefslogtreecommitdiff
path: root/ltrace.c
AgeCommit message (Collapse)Author
2009-06-25Re-organize file namesJuan Cespedes
2009-05-28Created library "libltrace.a" and a simple program that calls itJuan Cespedes
2009-04-28struct process -> ProcessJuan Cespedes
2009-04-07More fields to struct "options"Juan Cespedes
(opt_c, opt_d, opt_A)
2009-04-07Fixed SEGFAULT when killing ltrace with SIGINT or SIGTERMJuan Cespedes
2009-04-07wait_for_something.c -> sysdeps/linux-gnu/events.cJuan 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-10Patches from Anderson Lizardo and Riku Voipio to reach Debian version 0.5-3.1Juan Cespedes
* Add generic support for arm targets * Save funtion arguments on arm * Add thumb instruction support * Add basic arm/eabi support * fix exec() testcase cleanup * fix memory corruption in clone() test * fix tracing child with "-p" option
2007-09-04Take arg_num out of arg_type_infoJuan 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-07-17add -F option to read in config filesSteve Fink
2006-02-20run Lindent over source to get everything looking about the sameIan Wienand
2006-02-20Switched to SVN (initial import)Ian Wienand
2006-02-16Some fixes...Ian Wienand
* read_config_file.c: initialise pt stack argument to stop warning * summary.c: make show_summary() obey -C for demangaling function names
2003-02-04Version 0.3.31Juan Cespedes
* Added a lot of functions to ltrace.conf, thanks to Jakub Jelinek <jakub@redhat.com> (closes: Bug#144518) * Fixed off-by-one problem in checking syscall number * Removed some warnings
2003-02-03Version 0.3.30Juan Cespedes
* Implemented -T option (show time spent inside each call) * Alphabetically sort options in help and manual page * Added -c option (summary of calls on program exit)
2003-02-01Version 0.3.29Juan Cespedes
* Align return values depending on screen width * Updated list of syscalls and signals to Linux 2.4.20 * Fixed bug introduced in 0.3.27 which caused -L option to segfault
2003-01-31Version 0.3.27Juan Cespedes
* Removed dependency on libdl (it is no longer needed) * Wrote generic dictionary, used in demangle.c and breakpoints.c * Added debug.c for better debugging output
2002-03-27Version 0.3.24Juan Cespedes
* Fixed 2 minor buffer overflows (closes: Bug#130746) * Obey --prefix, --sysconfdir, --mandir options in configure * Adding powerpc support (doesn't work yet) (Anton Blanchard <anton@linuxcare.com.au>)
2002-03-01Version: 0.3.18Juan Cespedes
* Simplified arch-dependent stuff * Updated list of syscalls and signals to Linux 2.4.18 * Unified coding-style of all function declarations * Do not indent lines indicating signals, exit codes, etc * Updated description * fix off-by-one problem in checking syscall number (Tim Waugh <twaugh@redhat.com> fixed this problem in RedHat two years ago; thank you for NOT noticing me...)
2001-07-02Version: 0.3.11Juan Cespedes
* Clean up lintian bugs * Fixed small bug reading start of arguments in config file * Keep a stack of nested calls (Morten Eriksen, 1999-07-04) * Add "--indent" option (Morten Eriksen, 1999-07-04) * cleans up connection between a breakpoint address and a call instance (Morten Eriksen, 1999-07-04) * New Standards-Version (3.5.5)
1998-09-25Version: 0.3.6Juan Cespedes
* Added m68k port (Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>) (Bug#27075) * Changed "int pid" with "pid_t pid" everywhere * Fixed return type of some functions from "int" to "void *" (thanks, Roman)
1998-04-25Version: 0.3.0Juan Cespedes
* Preliminary autoconf support * Switched to getopt() * New option: -C (demangle C++ names) * New options: --help, --version * Display "format" (printf-like) argument types * Updated manual page * New option: -e
1998-04-12Version 0.2.9Juan Cespedes
* Bug#20616 wasn't completely fixed; it didn't work with some programs (Fixed) * Stopping ltrace with ^C DIDN'T WORK if -p option is not used!! (Fixed) * Option -f caused program to segfault; fixed * Fixed nasty bug about executing set[ug]id binaries: When executing a program fails, don't left the program STOPPED. * Make ltrace work with all setuid and setgid binaries when invoked as root
1998-04-04Version: 0.2.8Juan Cespedes
* Fix important bug regarding -p: disable all breakpoints on exit (Bug#20616) * Compile cleanly on libc5 * Added `-t' option (Bug#20615)
1998-03-14Version 0.2.6Juan Cespedes
* Option `-f' now works (but it fails to attach some processes...) * Output is now more similar to strace's
1998-03-13Version 0.2.4Juan Cespedes
* Option `-p' now works (but programs fail when ltrace is interrupted)
1998-03-08Version 0.2.0Juan Cespedes
* First Debian unstable release * Complete re-structured all the code to be able to add support for different architectures (but only i386 arch is supported in this version) * Log also return values * Log arguments (and return values) for syscalls * Added preliminary support for various simultaneous processes * getopt-like options * New option: -a (alignment column) * New option: -L (don't display library calls) * New option: -s (maximum # of chars in strings) * Now it reads config files with function names and parameter types * Programs using clone() should work ok now * debian/rules: gzipped only big files in /usr/doc/ltrace * Debian: New Standards-Version: 2.4.0.0 * beginning to work on sparc port (not yet done)
1997-08-27Version 0.1.5Juan Cespedes
* `command' is now searched in the PATH
1997-08-25Version 0.1.4Juan Cespedes
* Updated execute_process() * No longer uses signals to wait for children. Should be a little faster. * Now every function uses output.c:send_*() instead of `FILE * output'
1997-08-24Version 0.1.3Juan Cespedes
* Added options `-i', `-S' * Added syscall names * Added signal names * Added `output.c', `signal.c'
1997-08-23Version 0.1.2Juan Cespedes
* Updated ``TODO'' * Added process.c:execute_process * Added i386.c:type_of_stop * Hopefully, system dependent stuff is now only in i386.[ch] and process.[ch] * `-d' can now be used many times: many levels of debug * removed breakpoint for children detecting fork()s. Now, *every* program should work ok * struct process now also has a field for the process filename * Added "syscall.c" with a list of system call names in Linux/i386
1997-08-22Version 0.1.1Juan Cespedes
* Added "BUGS", "TODO" * Added symbols.c:disable_all_breakpoints * Added ``process.[ch]'': init_sighandler, pid2proc * Removed ``trace.c'' * Added rudimentary support for multiple processes * Now tracing syscalls (fork() needs a special treatment)
1997-08-22Version 0.1.0Juan Cespedes
* Some clean-ups * Added simple manual page
1997-08-17Version 0.0.1997.08.15Juan Cespedes
New file: symbols.c
1997-08-11Version 0.0.1997.08.10Juan Cespedes
1997-08-09Version 0.0.1997.08.09Juan Cespedes
* Added Debian files * Re-structured most of the code; new files: elf.c, i386.c, trace.c * Added README * Renamed "functions.cfg" to "etc/ltrace.rc"
1997-07-17Version 0.0.1997.07.17Juan Cespedes
Added configuration file: functions.cfg
1997-06-25Version 0.0.1997.06.25Juan Cespedes
I think I've found the optimal format for config files: C prototypes! For example: void * malloc(unsigned int size);
1997-06-16Version 0.0.1997.06.16Juan Cespedes
1997-06-11Version 0.0.1997.06.11Juan Cespedes
1997-06-10Version 0.0.1997.06.10Juan Cespedes
1997-06-09Version 0.0.1997.06.09Juan Cespedes
Completely new approach: use software breakpoints (INT 3, CC) in process using ptrace(), just like gdb and strace do