1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-07 11:41:16 +02:00

30473: update _strace completion

This commit is contained in:
Mikael Magnusson 2012-05-17 13:35:52 +00:00
parent e86eb843bf
commit 08408fe134
2 changed files with 28 additions and 18 deletions

View file

@ -1,3 +1,8 @@
2012-05-17 Mikael Magnusson <mikachu@gmail.com>
* 30473: Completion/Linux/Command/_strace: update for 4.7 and
mark all options as taking sticked arguments.
2012-05-14 Mikael Magnusson <mikachu@gmail.com> 2012-05-14 Mikael Magnusson <mikachu@gmail.com>
* 30468: Functions/Prompts/prompt_fade_setup: add missing $ * 30468: Functions/Prompts/prompt_fade_setup: add missing $
@ -16301,5 +16306,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5653 $ * $Revision: 1.5654 $
***************************************************** *****************************************************

View file

@ -85,29 +85,34 @@ _expression () {
_arguments \ _arguments \
'()-c[count time, calls, and errors for each system call and report a summary]' \ '()-c[count time, calls, and errors for each system call and report a summary]' \
-d'[show some debugging output of strace itself on the standard error]' \ '()-C[count time, calls, and errors for each system call and report a summary in addition to regular output]' \
-f'[trace child processes as they are created by currently traced processes]' \ '-d[show some debugging output of strace itself on the standard error]' \
-ff'[write each process trace to <filename>.<pid> (when using -o <filename>]' \ '-D[run tracer as detached grandchild, keeping traced process as direct child of calling process]' \
'-f[trace child processes as they are created by currently traced processes]' \
'-ff[write each process trace to <filename>.<pid> (when using -o <filename>]' \
'(-c -d -f -ff -i -q -r -t -tt -ttt -T -v -V -x -xx -a -e -o -O -p -s -S -u -E)-h[print help]' \ '(-c -d -f -ff -i -q -r -t -tt -ttt -T -v -V -x -xx -a -e -o -O -p -s -S -u -E)-h[print help]' \
-i'[print the instruction pointer at the time of the system call]' \ '-i[print the instruction pointer at the time of the system call]' \
-q'[suppress messages about attaching, detaching etc.]' \ '-q[suppress messages about attaching, detaching etc.]' \
-r'[print a relative timestamp upon entry to each system call]' \ '-r[print a relative timestamp upon entry to each system call]' \
'(-ttt)-t[prefix each line of the trace with the time of day]' \ '(-ttt)-t[prefix each line of the trace with the time of day]' \
'(-ttt -tt)-tt[prefix each line of the trace with the time of day including the microseconds]' \ '(-ttt -tt)-tt[prefix each line of the trace with the time of day including the microseconds]' \
'(-tt -t)-ttt[prefix each line of the trace with the number of seconds and microseconds since the epoch]' \ '(-tt -t)-ttt[prefix each line of the trace with the number of seconds and microseconds since the epoch]' \
-T'[show the time spent in system calls]' \ '-T[show the time spent in system calls]' \
-v'[print unabbreviated versions of environment, stat, termios, etc. calls]' \ '-y[print paths associated with file descriptor arguments]' \
'-v[print unabbreviated versions of environment, stat, termios, etc. calls]' \
'(-c -d -f -ff -h -i -q -r -t -tt -ttt -T -v -x -xx -a -e -o -O -p -s -S -u -E)-V[print the version number of strace]' \ '(-c -d -f -ff -h -i -q -r -t -tt -ttt -T -v -x -xx -a -e -o -O -p -s -S -u -E)-V[print the version number of strace]' \
'(-xx)-x[print all non-ASCII strings in hexadecimal string format]' \ '(-xx)-x[print all non-ASCII strings in hexadecimal string format]' \
'(-x)-xx[print all strings in hexadecimal string format]' \ '(-x)-xx[print all strings in hexadecimal string format]' \
-a'[align return values in a specific column (default 40)]:column number' \ '-I+[when strace can be interrupted by signals]:interruptible:((1\:"no signals are blocked" 2\:"fatal signals are blocked while decoding syscall (default)" 3\:"fatal signals are always blocked (default if '\''-o FILE PROG'\''" 4\:"fatal signals and SIGTSTP are always blocked"))' \
'*-e[select events to trace or how to trace]:system call:_expression' \ '*-P+[trace only system calls accessing given path]:path:_files' \
'-o[write the trace output to the file]:output file:_files' \ '-a+[align return values in a specific column (default 40)]:column number' \
'-O[overhead for tracing system calls]:overhead microseconds' \ '*-e+[select events to trace or how to trace]:system call:_expression' \
'(:)-p[attach to the process with specified process ID and begin tracing]:process ID:_pids' \ '-o+[write the trace output to the file]:output file:_files' \
'-s[specify the maximum string size to print (default 32)]:maximum string size' \ '-O+[overhead for tracing system calls]:overhead microseconds' \
'-S[sort the output of the histogram (-c option) by the specified criterion]:sort by:(time calls name nothing)' \ '(:)-p+[attach to the process with specified process ID and begin tracing]:process ID:_pids' \
'-u[run as specified user]:user:_users' \ '-s+[specify the maximum string size to print (default 32)]:maximum string size' \
'*-E[remove variable from the inherited list of environment or define a value]:variable:_printenv' \ '-S+[sort the output of the histogram (-c option) by the specified criterion]:sort by:(time calls name nothing)' \
'-u+[run as specified user]:user:_users' \
'*-E+[remove variable from the inherited list of environment or define a value]:variable:_printenv' \
'(-):command name: _command_names -e' \ '(-):command name: _command_names -e' \
'*::arguments:_normal' '*::arguments:_normal'