diff options
author | Alexandra Hájková <ahajkova@redhat.com> | 2024-02-02 11:13:47 +0100 |
---|---|---|
committer | Alexandra Hájková <ahajkova@redhat.com> | 2024-07-29 16:33:22 +0200 |
commit | 7e42bbed5b11c30330b722d78eec3b2004f1a918 (patch) | |
tree | 6b54b81c7917e478a8d957f9c6c20e20524997d8 /gdb/doc | |
parent | 5dd825c15dcdf0278a37c7d8581019a4ace56c8f (diff) | |
download | gdb-7e42bbed5b11c30330b722d78eec3b2004f1a918.zip gdb-7e42bbed5b11c30330b722d78eec3b2004f1a918.tar.gz gdb-7e42bbed5b11c30330b722d78eec3b2004f1a918.tar.bz2 |
Add a test for the gcore script
It also tests the gcore script being run without its accessible
terminal.
This test was written by Jan Kratochvil a long time ago. I modernized
the test making it use various procs from lib/gdb.exp, reorganizing it
and added some comments.
Modify the gcore script to make it possible to pass the --data-directory to
it. This prevents a lot of these warnings:
Python Exception <class 'AttributeError'>: module 'gdb' has no attribute
'_handle_missing_debuginfo'
Tested by using make check-all-boards.
Co-Authored-By: Jan Kratochvil <jan.kratochvil@redhat.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 147b8d4..b900b5d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -51032,7 +51032,7 @@ Richard M. Stallman and Roland H. Pesch, July 1991. @format @c man begin SYNOPSIS gcore -gcore [-a] [-o @var{prefix}] @var{pid1} [@var{pid2}...@var{pidN}] +gcore [-a] [-o @var{prefix}] [-d @var{directory}] @var{pid1} [@var{pid2}...@var{pidN}] @c man end @end format @@ -51060,6 +51060,10 @@ when composing the file names of the core dumps. The file name is composed as @file{@var{prefix}.@var{pid}}, where @var{pid} is the process ID of the running program being analyzed by @command{gcore}. If not specified, @var{prefix} defaults to @var{gcore}. + +@item -d @var{directory} +Use @var{directory} as the data directory when invoking @value{GDBN} for running +the gcore command. This argument is optional. @end table @c man end |