From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28732 invoked by alias); 17 Jul 2018 17:09:55 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43182 Received: (qmail 12061 invoked by uid 1010); 17 Jul 2018 17:09:54 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-expgw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.98.4):SA:0(-2.6/5.0):. Processed in 2.077417 secs); 17 Jul 2018 17:09:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Biglobe-Sender: From: "Jun T." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [PATCH] _lldb: complete process name for option -n Message-Id: Date: Wed, 18 Jul 2018 02:09:48 +0900 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3273) X-Biglobe-Spnum: 53147 Use _process_names for -n/--attach-name. 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 @@ =20 local curcontext=3D$curcontext state state_descr line expl ret=3D1 typeset -A opt_args -local -a args +typeset -a opts args +[[ $EUID =3D 0 || $_comp_priv_prefix[1] =3D sudo ]] && opts=3D( -a ) =20 args=3D( '*'{-o+,--one-line=3D}'[run one-line lldb command after loading = executable]:lldb command: ' @@ -29,7 +30,7 @@ args=3D( '(-c --core)'{-c+,--core=3D}'[specify core file to open]:core = file:_files -g "*core*(-.)"' '*::executable and arguments:->exe_args' - name - '(-n --attach-name)'{-n+,--attach-name=3D}'[attach to the named = process]:process name' + '(-n --attach-name)'{-n+,--attach-name=3D}"[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=3D}'[attach to the specified = process]:pid:_pids'