summaryrefslogtreecommitdiffstats
path: root/winsup/utils/strace.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* * strace.cc (version): New global variable.Christopher Faylor2002-06-061-20/+43
| | | | | (usage): Accomodate stdout output. (print_version): New function.
* * strace.cc (forkdebug): Make true by default.Christopher Faylor2002-06-021-8/+10
| | | | | | (attach_process): Use window pid if cygwin pid isn't available (yet). (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS, exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
* * strace.cc (attach_process): Don't tell process to start stracing here.Christopher Faylor2002-05-271-3/+8
| | | | | | (proc_child): Do it here, instead, after first debug event. This should work around inexplicable races with DebugActiveProcess. (dostrace): Pass any pid argument to proc_child.
* * strace.cc (add_child): Use calloc since new requires working libstdc++.a.Christopher Faylor2002-05-181-2/+2
| | | | (fhandler_disk_file::fstat): Ditto for delete/free.
* update copyrightChristopher Faylor2002-02-251-2/+2
|
* * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.Christopher Faylor2002-02-141-1/+1
|
* * Makefile.in (MINGW_INCLUDES): Change cygwin include.Christopher Faylor2002-01-291-34/+90
| | | | | | | | | | | | | * strace.cc: Use specific cygwin includes, as required. (load_cygwin): New function. Loads cygwin DLL, if necessary. (attach_process): Attaches strace to a running process. (dostrace): Accept pid argument. Attach to pid if supplied. (usage): Describe -p option. Correct system description. (longopts): Alphabetize. (opts): Ditto. (main): Ditto. Handle -p option. * Makefile.in (CXXFLAGS): Ensure that important settings are preserved even when overriden by command line.
* * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.Christopher Faylor2002-01-221-3/+2
| | | | | | | | * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning. (dump_sysinfo): Make variables unsigned to quiet g++ warnings. * strace.cc (version_string): Rename from SCCSid. (add_child): Remove unused variable. (version): Use version_string. Avoid use of fprintf.
* * cygcheck.cc (usage): Add -c description.Christopher Faylor2001-12-041-14/+13
| | | | | * cygpath.cc (usage): Alphabetize options. * strace.cc (usage): Ditto.
* * strace.cc (main): Change getopt() to getopt_long().Corinna Vinschen2001-11-171-2/+217
| | | | | | | | | | | | | | | | Add support for help and version info. Use new parse_mask() function for -m/--mask option. (longopts): Add long options structure. (opts): Move options string from getopts call to static var. (usage): Print usage information. (SCCSid): Version info. (version): New function for displaying version info. (parse_mask): New function supporting parsing of mnemonics, hex, and basic expressions in masks. (mnemonic2ul): New mnemonic parsing function. (tag_mask_mnemonic): New type. (mnemonic_table): New table of mnemonics for mnemonic2ul() to search through.
* * strace.cc (main): New option '-w'. Start traced process in separateEgor Duda2001-11-041-3/+24
| | | | | | window. New option '-S x'. Flush buffered output every x seconds. (create_child): Start child process in new window, when requested. When requested, periodically flush debugging output.
* * getfacl.c: Add copyright hint.Corinna Vinschen2001-03-051-0/+12
| | | | | * setfacl.c: Ditto. * strace.cc: Ditto.
* Cleanup formatting on some files. Remove excessive whitespace.Christopher Faylor2000-10-281-43/+54
|
* * strace.cc (main): Add a '-b' option.Christopher Faylor2000-10-281-2/+10
|
* * ps.cc (main): Accomodate new PID_ constant.Christopher Faylor2000-10-151-1/+8
|
* * strace.cc (proc_child): Handle exceptions correctly.Christopher Faylor2000-10-121-2/+6
|
* * ps.cc (main): Change order of reporting slightly so that windows pids areChristopher Faylor2000-10-091-9/+1
| | | | | | | | more obvious. * strace.cc (add_child): Just add child's pid directly. (remove_child): No need to close the child process pid since ContinueDebugEvent does that automatically. (proc_child): Ditto for child thread.
* * mount.cc: add stdlib.h for exitDJ Delorie2000-06-051-0/+3
| | | | | * umount.cc: ditto * strace.cc: add #define for alloca
* Patch suggested by Mumit Khan <khan@xraylith.wisc.edu>:Christopher Faylor2000-03-191-0/+6
| | | | | * strace.cc (_impure_ptr): New global variable to make strace build under Cygwin gcc.
* * strace.cc: Throughout, track information like start_time, etc. on aChristopher Faylor2000-03-131-28/+31
| | | | per-process basis.
* * strace.cc (handle_output_debug_string): Parse strace output to allow variousChristopher Faylor2000-02-281-8/+138
| | | | types of time output.
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+481