diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-03-06 15:01:46 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-03-13 15:33:31 +0000 |
commit | 56252b7c913aad1aed5f14bf81c87bb7d22edfbb (patch) | |
tree | a128ee057171baa7f02e689967148ed368721b35 /gdb/doc | |
parent | 51729ea0905d1f688b7fd2ea769e69b29daa1b7c (diff) | |
download | binutils-56252b7c913aad1aed5f14bf81c87bb7d22edfbb.zip binutils-56252b7c913aad1aed5f14bf81c87bb7d22edfbb.tar.gz binutils-56252b7c913aad1aed5f14bf81c87bb7d22edfbb.tar.bz2 |
gcore: add -v or --version option to show version number
Based on the work in this commit:
commit fb2ded33c1e519659743047ed7817166545b6d91
Date: Fri Dec 20 12:46:11 2024 -0800
Add gstack script
This commit adds a '-v' or '--version' option to the existing gcore
script. This new option causes the script to print its version
number, and then exit.
I needed to adjust the getopts handling a little in order to support
the long form '--version' argument, but as this makes gcore more
consistent with gstack, then this seems like a good thing.
The usage message is now getting a little long. Don't worry, I plan
to clean that up in the next commit.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32325
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 04719bf..ef77657 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -51391,7 +51391,8 @@ Richard M. Stallman and Roland H. Pesch, July 1991. @format @c man begin SYNOPSIS gcore -gcore [-a] [-o @var{prefix}] [-d @var{directory}] @var{pid1} [@var{pid2}...@var{pidN}] +gcore [-v | --version] [-a] [-o @var{prefix}] [-d @var{directory}] + @var{pid1} [@var{pid2}...@var{pidN}] @c man end @end format @@ -51423,6 +51424,10 @@ If not specified, @var{prefix} defaults to @var{gcore}. @item -d @var{directory} Use @var{directory} as the data directory when invoking @value{GDBN} for running the gcore command. This argument is optional. + +@item --version +@itemx -v +Print version information and then exit. @end table @c man end |