]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gcore: add -v or --version option to show version number
authorAndrew Burgess <aburgess@redhat.com>
Thu, 6 Mar 2025 15:01:46 +0000 (15:01 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 13 Mar 2025 15:33:31 +0000 (15:33 +0000)
commit56252b7c913aad1aed5f14bf81c87bb7d22edfbb
treea128ee057171baa7f02e689967148ed368721b35
parent51729ea0905d1f688b7fd2ea769e69b29daa1b7c
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>
gdb/Makefile.in
gdb/NEWS
gdb/configure
gdb/configure.ac
gdb/doc/gdb.texinfo
gdb/gcore-1.in [moved from gdb/gcore.in with 88% similarity]