about summary refs log tree commit diff
path: root/Completion/Solaris/Command/_gcore
blob: c7b8d946627e64d5740b4b709f3a0082d3c9694b (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 "$@"