mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 17:00:32 +02:00
43182: _lldb: complete process name after option -n
This commit is contained in:
parent
50e272d301
commit
6ae241c43a
2 changed files with 6 additions and 2 deletions
|
|
@ -8,6 +8,9 @@
|
||||||
* 43177: Completion/Unix/Command/_grep: support bzgrep, and add
|
* 43177: Completion/Unix/Command/_grep: support bzgrep, and add
|
||||||
a few options for macOS.
|
a few options for macOS.
|
||||||
|
|
||||||
|
* 43182: Completion/Unix/Command/_lldb: complete process name
|
||||||
|
after option -n/--attach-name
|
||||||
|
|
||||||
2018-07-17 Peter Stephenson <p.stephenson@samsung.com>
|
2018-07-17 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* unposted: Doc/Makefile.in: remove ftp_sites.yo.
|
* unposted: Doc/Makefile.in: remove ftp_sites.yo.
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
local curcontext=$curcontext state state_descr line expl ret=1
|
local curcontext=$curcontext state state_descr line expl ret=1
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
local -a args
|
typeset -a opts args
|
||||||
|
[[ $EUID = 0 || $_comp_priv_prefix[1] = sudo ]] && opts=( -a )
|
||||||
|
|
||||||
args=(
|
args=(
|
||||||
'*'{-o+,--one-line=}'[run one-line lldb command after loading executable]:lldb command: '
|
'*'{-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*(-.)"'
|
'(-c --core)'{-c+,--core=}'[specify core file to open]:core file:_files -g "*core*(-.)"'
|
||||||
'*::executable and arguments:->exe_args'
|
'*::executable and arguments:->exe_args'
|
||||||
- name
|
- 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]'
|
'(-w --wait-for)'{-w,--wait-for}'[wait for the specified process to launch]'
|
||||||
- pid
|
- pid
|
||||||
'(-p --attach-pid)'{-p+,--attach-pid=}'[attach to the specified process]:pid:_pids'
|
'(-p --attach-pid)'{-p+,--attach-pid=}'[attach to the specified process]:pid:_pids'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue