aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2025-03-06 15:01:46 +0000
committerAndrew Burgess <aburgess@redhat.com>2025-03-13 15:33:31 +0000
commit56252b7c913aad1aed5f14bf81c87bb7d22edfbb (patch)
treea128ee057171baa7f02e689967148ed368721b35 /gdb/python/python.c
parent51729ea0905d1f688b7fd2ea769e69b29daa1b7c (diff)
downloadbinutils-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/python/python.c')
0 files changed, 0 insertions, 0 deletions