From 80082f1ec41b821a15372dd53da7225fd642ed0d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 7 Jun 2002 01:36:17 +0000 Subject: * strace.cc (toggle): New global variable. (error): Use exit instead of ExitProcess so that stdio buffers get flushed. (create_child): Remove command line error checking. (dostrace): Ditto. (dotoggle): New function. (usage): Add entry for new option -T|--toggle. Alphabetize. (longopts): Add new option -T|--toggle. (opts): Ditto. (main): Handle new -T|--toggle option. Move all command line checking here from other functions. * utils.sgml: Update section for strace. --- winsup/utils/utils.sgml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'winsup/utils/utils.sgml') diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml index d9a6049c9..6677611fe 100644 --- a/winsup/utils/utils.sgml +++ b/winsup/utils/utils.sgml @@ -641,21 +641,23 @@ table. strace -Usage strace [options] program [args...] - +Usage: strace [OPTIONS] +Usage: strace [OPTIONS] -p -b, --buffer-size=SIZE set size of output file buffer -d, --no-delta don't display the delta-t microsecond timestamp - -f, --trace-children trace child processes (toggle -- default is "true") - -h, --help display help info + -f, --trace-children trace child processes (toggle - default true) + -h, --help output usage information and exit -m, --mask=MASK set message filter mask -n, --crack-error-numbers output descriptive text instead of error numbers for Windows errors -o, --output=FILENAME set output file to FILENAME - -p, --pid=pid attach to a running process + -p, --pid=n attach to executing program with cygwin pid n -S, --flush-period=PERIOD flush buffered strace output every PERIOD secs - -t, --timestamp use an absolute hh:mm:ss timestamp insted of the - default microsecond timestamp. Implies -d - -v, --version display version info + -t, --timestamp use an absolute hh:mm:ss timestamp insted of + the default microsecond timestamp. Implies -d + -T, --toggle toggle tracing in a process already being + traced. Requires -p + -v, --version output version information and exit -w, --new-window spawn program under test in a new window MASK can be any combination of the following mnemonics and/or hex values -- cgit v1.2.3