1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-23 17:01:05 +02:00
zsh/Completion/Solaris/Command/_gcore

31 lines
805 B
Text

#compdef gcore
_gcore() {
local -a content
content=(
"anon[anonymous private mappings]"
"ctf[CTF type information]"
"data[writable private file mappings]"
"dism[DISM mappings]"
"heap[process heap]"
"ism[ISM mappings]"
"rodata[read-only private file mappings]"
"shanon[anonymous shared mappings]"
"shfile[file-backed shared mappings]"
"shm[System V shared memory]"
"stack[process stack]"
"symtab[symbol table sections for loaded files]"
"text[readable and executable private file mappings]"
)
_arguments -s \
'-p[use per-process core file repository]' \
'-g[use global core file repository]' \
'-F[force grabbing the target process]' \
'-c[set core file content]:_values -s + "content" $content' \
'-o[set core file base name]:' \
'*:pids:_pids'
}
_gcore "$@"