From 622d3e7f1d222cd97422ebea6f176714a3305579 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 29 Jun 2007 08:51:57 +0000 Subject: 23611: new completions for ldd and LD_DEBUG on Solaris and Linux --- Completion/Unix/Type/.distfiles | 2 +- Completion/Unix/Type/_ld_debug | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Completion/Unix/Type/_ld_debug (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles index b5fc39b24..713e0e8c2 100644 --- a/Completion/Unix/Type/.distfiles +++ b/Completion/Unix/Type/.distfiles @@ -2,7 +2,7 @@ DISTFILES_SRC=' .distfiles _arch_archives _arch_namespace _canonical_paths _bind_addresses -_dict_words _list_files +_dict_words _ld_debug _list_files _mailboxes _perl_modules _tex _diff_options _my_accounts _pids _texi _dir_list _newsgroups _ports _tilde_files diff --git a/Completion/Unix/Type/_ld_debug b/Completion/Unix/Type/_ld_debug new file mode 100644 index 000000000..94593eff0 --- /dev/null +++ b/Completion/Unix/Type/_ld_debug @@ -0,0 +1,39 @@ +#compdef -value-,LD_DEBUG,-default- + +local vals + +vals=( + 'libs[display library search paths]' + 'files[show processing of files and libraries]' + 'bindings[display symbol binding]' + 'reloc[display relocation processing]' + 'symbols[display symbol table processing]' + 'unused[show unused files]' + 'versions[show version processing]' + 'help[display help message]' +) + +case $OSTYPE in + solaris*) + vals+=( + 'basic[provide basic trace information/warnings]' + 'cap[display hardware/software capability processing]' + 'detail[provide more info in conjunction with other options]' + 'demangle[display C++ symbol names in their demangled form]' + 'init[display init and fini processing]' + 'long[display long object names without truncation]' + 'move[display move section processing]' + 'segments[display available output segments and address/offset processing]' + 'strtab[display information about string table compression]' + 'tls[display TLS processing info]' + ) + ;; + linux*) + vals+=( + 'all[combine all options]' + 'statistics[display relocation statistics]' + ) + ;; +esac +_values -s , capability $vals + -- cgit 1.4.1