]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gcore: add -h|--help options, and improve help/usage message output
authorAndrew Burgess <aburgess@redhat.com>
Thu, 6 Mar 2025 15:46:14 +0000 (15:46 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 13 Mar 2025 15:33:31 +0000 (15:33 +0000)
commit86ab2c442ff669481df17681a27bb9c7b9a64289
tree223022a2fab87bbbd7d80ec5bca21b26a6dc3347
parent56252b7c913aad1aed5f14bf81c87bb7d22edfbb
gcore: add -h|--help options, and improve help/usage message output

Like the previous commit, this copies a lot from:

  commit fb2ded33c1e519659743047ed7817166545b6d91
  Date:   Fri Dec 20 12:46:11 2024 -0800

      Add gstack script

And adds -h | --help options to the gcore script, and smartens up the
help and usage output messages.

The usage text is now split over several lines (as it was getting a
bit long), and an input error suggests using `--help` instead of
printing the full usage string.

These changes bring gcore and gstack closer in behaviour.

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/NEWS
gdb/doc/gdb.texinfo
gdb/gcore-1.in