mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
36864: new objdump completion and tweak to nm completion
This commit is contained in:
parent
827d360776
commit
21b6852b15
3 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-10-15 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 36864: Completion/Unix/Command/_nm,
|
||||
Completion/Unix/Command/_objdump: new objdump completion plus
|
||||
tweak to _nm.
|
||||
|
||||
2015-10-14 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 36853: Src/exec.c: replace pushheap/popheap by NEWHEAPS/OLDHEAPS
|
||||
|
|
|
@ -6,7 +6,7 @@ _nm_object_file() {
|
|||
[[ -x $REPLY || $REPLY = *.([ao]|so|elf) ]]
|
||||
}
|
||||
|
||||
files="*:object file:_files -g '*(-.e:_nm_object_file:)'"
|
||||
files="*:object file:_files -g '*(-.e,_nm_object_file,)'"
|
||||
args=(
|
||||
'(-A -o --print-file-name)'{-A,-o,--print-file-name}'[print name of input file on each line]'
|
||||
'(--demangle)-C[decode symbol names]'
|
||||
|
|
8
Completion/Unix/Command/_objdump
Normal file
8
Completion/Unix/Command/_objdump
Normal file
|
@ -0,0 +1,8 @@
|
|||
#compdef objdump
|
||||
|
||||
# borrowed from _nm_object_file
|
||||
_objdump_object_file() {
|
||||
[[ -x $REPLY || $REPLY = *.([ao]|so|elf) ]]
|
||||
}
|
||||
|
||||
_arguments -- '*:object file:_files -g "*(-.e,_objdump_object_file,)"'
|
Loading…
Reference in a new issue