about summary refs log tree commit diff
path: root/Completion/Solaris/Command/_gcore
blob: d4ac9a03a0aaaa39c11a3079f64f7565cc0dddbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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 "$@"