Re: [PATCH 2/3] gcore: add -h|--help options, and improve help/usage message output

Eli Zaretskii
2025-03-06T17:33:53Z

> From: Andrew Burgess <aburgess@redhat.com>
> Cc: Andrew Burgess <aburgess@redhat.com>
> Date: Thu, 6 Mar 2025 17:10:23 +0000
>
> 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.
> ---
> gdb/NEWS | 3 ++-
> gdb/doc/gdb.texinfo | 6 +++++-
> gdb/gcore-1.in | 50 ++++++++++++++++++++++++++++++++++++++++-----
> 3 files changed, 52 insertions(+), 7 deletions(-)

OK for the documentation parts, thanks.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>