aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2025-03-06 15:46:14 +0000
committerAndrew Burgess <aburgess@redhat.com>2025-03-13 15:33:31 +0000
commit86ab2c442ff669481df17681a27bb9c7b9a64289 (patch)
tree223022a2fab87bbbd7d80ec5bca21b26a6dc3347 /gdb/doc
parent56252b7c913aad1aed5f14bf81c87bb7d22edfbb (diff)
downloadbinutils-86ab2c442ff669481df17681a27bb9c7b9a64289.zip
binutils-86ab2c442ff669481df17681a27bb9c7b9a64289.tar.gz
binutils-86ab2c442ff669481df17681a27bb9c7b9a64289.tar.bz2
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>
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/gdb.texinfo6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index ef77657..dae3ef2 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -51391,7 +51391,7 @@ Richard M. Stallman and Roland H. Pesch, July 1991.
@format
@c man begin SYNOPSIS gcore
-gcore [-v | --version] [-a] [-o @var{prefix}] [-d @var{directory}]
+gcore [-v | --version] [-h | --help] [-a] [-o @var{prefix}] [-d @var{directory}]
@var{pid1} [@var{pid2}...@var{pidN}]
@c man end
@end format
@@ -51425,6 +51425,10 @@ If not specified, @var{prefix} defaults to @var{gcore}.
Use @var{directory} as the data directory when invoking @value{GDBN} for running
the gcore command. This argument is optional.
+@item --help
+@itemx -h
+List all options, with brief explanations.
+
@item --version
@itemx -v
Print version information and then exit.