summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_lldb
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
commit719a715614f2182a76b30ad27a327d70a86f34f1 (patch)
treea437eb29da8035bf7c2e30506c08fe6f15719871 /Completion/Unix/Command/_lldb
parent7da8d19c224860ae4d6aa3f077fca7f734f20d88 (diff)
parentef61918398517473b9b594690a3be375f607cebe (diff)
downloadzsh-719a715614f2182a76b30ad27a327d70a86f34f1.tar.gz
zsh-719a715614f2182a76b30ad27a327d70a86f34f1.zip
Merge tag 'zsh-5.5.1-test-2' into debian
Test release: 5.5.1-test-2.
Diffstat (limited to 'Completion/Unix/Command/_lldb')
-rw-r--r--Completion/Unix/Command/_lldb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_lldb b/Completion/Unix/Command/_lldb
index 16e346cfb..0426f69f2 100644
--- a/Completion/Unix/Command/_lldb
+++ b/Completion/Unix/Command/_lldb
@@ -2,7 +2,8 @@
local curcontext=$curcontext state state_descr line expl ret=1
typeset -A opt_args
-local -a args
+typeset -a opts args
+[[ $EUID = 0 || $_comp_priv_prefix[1] = sudo ]] && opts=( -a )
args=(
'*'{-o+,--one-line=}'[run one-line lldb command after loading executable]:lldb command: '
@@ -29,7 +30,7 @@ args=(
'(-c --core)'{-c+,--core=}'[specify core file to open]:core file:_files -g "*core*(-.)"'
'*::executable and arguments:->exe_args'
- name
- '(-n --attach-name)'{-n+,--attach-name=}'[attach to the named process]:process name'
+ '(-n --attach-name)'{-n+,--attach-name=}"[attach to the named process]: :_process_names $opts"
'(-w --wait-for)'{-w,--wait-for}'[wait for the specified process to launch]'
- pid
'(-p --attach-pid)'{-p+,--attach-pid=}'[attach to the specified process]:pid:_pids'