about summary refs log tree commit diff
path: root/Completion/Unix/Type/_ld_debug
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2007-06-29 08:51:57 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2007-06-29 08:51:57 +0000
commit622d3e7f1d222cd97422ebea6f176714a3305579 (patch)
tree784a39f9ce9d0c2fc41bb2abebe773b25059b159 /Completion/Unix/Type/_ld_debug
parent0e7a50be36a3236026c23700756312c7d065a013 (diff)
downloadzsh-622d3e7f1d222cd97422ebea6f176714a3305579.tar.gz
zsh-622d3e7f1d222cd97422ebea6f176714a3305579.tar.xz
zsh-622d3e7f1d222cd97422ebea6f176714a3305579.zip
23611: new completions for ldd and LD_DEBUG on Solaris and Linux
Diffstat (limited to 'Completion/Unix/Type/_ld_debug')
-rw-r--r--Completion/Unix/Type/_ld_debug39
1 files changed, 39 insertions, 0 deletions
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
+