From: "Jun. T" <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: [PATCH] update _gcore (support darwin)
Date: Wed, 7 Apr 2021 00:55:29 +0900 [thread overview]
Message-ID: <3EE47B6A-FDF4-4C93-AED5-39A89032A43A@kba.biglobe.ne.jp> (raw)
Add support for macOS, with small updates for GNU (accept multiple pids).
diff --git a/Completion/Unix/Command/_gcore b/Completion/Unix/Command/_gcore
index 07a65cd9a..913ef25ca 100644
--- a/Completion/Unix/Command/_gcore
+++ b/Completion/Unix/Command/_gcore
@@ -49,10 +49,20 @@ case $OSTYPE in
'::executable:' \
':pid:_pids'
;;
+ darwin*)
+ _arguments -s -A '-*' \
+ '-s[suspend the process while the core file is captured]' \
+ '-v[report progress on the dump as it proceeds]' \
+ '-b+[specify maximum size of core file]:size (MiB): ' \
+ '(-c)-o+[write core file to specified file]:file:_files' \
+ '(-o)-c+[specify format of core file name]:format:{_message "%%N\:program name, %%U\:uid, %%P\:pid, %%T\:time stamp"}' \
+ '1:pid:_pids'
+ ;;
*)
# GNU GDB gcore
- _arguments \
- '-o[set core file base name]:file base name:_files' \
- ':pid:_pids'
+ _arguments -s -A '-*' \
+ '-a[dump all memory mappings]' \
+ '-o+[set core file base name]:file base name:_files' \
+ '*:pid:_pids'
;;
esac
reply other threads:[~2021-04-06 15:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EE47B6A-FDF4-4C93-AED5-39A89032A43A@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).