diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-07 01:36:17 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-07 01:36:17 +0000 |
commit | 80082f1ec41b821a15372dd53da7225fd642ed0d (patch) | |
tree | 4711802b90784879e2989bbbf19c32909dfc9cd1 /winsup/utils/utils.sgml | |
parent | a579a11b57168418c44f08fb17edbd0e290cc1a8 (diff) | |
download | cygnal-80082f1ec41b821a15372dd53da7225fd642ed0d.tar.gz cygnal-80082f1ec41b821a15372dd53da7225fd642ed0d.tar.bz2 cygnal-80082f1ec41b821a15372dd53da7225fd642ed0d.zip |
* 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.
Diffstat (limited to 'winsup/utils/utils.sgml')
-rw-r--r-- | winsup/utils/utils.sgml | 18 |
1 files changed, 10 insertions, 8 deletions
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.</para> <sect2 id="strace"><title>strace</title> <screen> -Usage strace [options] program [args...] - +Usage: strace [OPTIONS] <command-line> +Usage: strace [OPTIONS] -p <pid> -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 <pid> + -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 |