From: Eli Zaretskii via Gdb-patches <gdb-patches@sourceware.org>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCHv3 2/3] gdb: process early initialization files and command line options
Date: Thu, 18 Feb 2021 19:46:55 +0200 [thread overview]
Message-ID: <831rdd5kvk.fsf@gnu.org> (raw)
In-Reply-To: <ac6837fc3f2fdf43c83b1e6d7e9585e491be58b8.1613666281.git.andrew.burgess@embecosm.com> (message from Andrew Burgess on Thu, 18 Feb 2021 16:41:03 +0000)
> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Date: Thu, 18 Feb 2021 16:41:03 +0000
>
> gdb/ChangeLog:
>
> PR cli/25956
> * NEWS: Mention new early init files and command line options.
> * config.in: Regenerate.
> * configure: Regenerate.
> * configure.ac: Define GDBEARLYINIT.
> * main.c (get_earlyinit_files): New function.
> (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
> CMDARG_EARLYINIT_COMMAND.
> (captured_main_1): Add support for new command line flags, and for
> processing startup files.
> (print_gdb_help): Include startup files in the output.
> <
> gdb/doc/ChangeLog:
>
> PR cli/25956
> * gdb.texinfo (File Options): Mention new command line options.
> (Startup): Discuss when early init files are processed.
> (Initialization Files): Add description of early init files.
> (Output Styling): Update description of 'version' style.
> (gdb man): Mention early init files.
>
> gdb/testsuite/ChangeLog:
>
> PR cli/25956
> * gdb.base/early-init-file.c: New file.
> * gdb.base/early-init-file.exp: New file.
> * lib/gdb-utils.exp (style): Handle style 'none'.
Thanks.
> +* GDB will now load and process commands from ~/.config/gdb/gdbearlyinit
> + or ~/.gdbearlyinit if these files are present. These files are
> + processed earlier than any of the previous initialization files and
^^^^^^^^
"Previous" is confusing here, since they are actually processed
_after_ .gdbearlyinit. I suggest "any of the other initialization
files" instead.
> +@item -early-init-command @var{file}
> +@itemx -eix @var{file}
> +@cindex @code{--early-init-command}
> +@cindex @code{-eix}
> +Execute commands from file @var{file} very early in the initialization
It is generally better to say
Execute commands from @var{file}
thus avoiding identical words one after the other. When the name in
@var describes itself, there's no need to have the description as
separate text.
> +process, before any output is produced. @xref{Startup}.
> +
> +@item -early-init-eval-command @var{command}
> +@itemx -eiex @var{command}
> +@cindex @code{--early-init-eval-command}
> +@cindex @code{-eiex}
> +Execute a single @value{GDBN} command very early in the initialization
> +process, before any output is produced. @xref{Startup}.
You have here two identical cross-references with only a handful of
lines between them. I'd lose the second one, as it's redundant here.
> +@item
> +Performs minimal setup required to initialise basic internal state.
^^^^^^^^^^
"initialize", in US spelling, per our conventions.
> +@cindex early initialization file
> +Read commands from the early initialization file (if any) in your home
^^^^
"Reads", to be consistent with the other items in this list.
> +directory. Only a restricted set of commands can be placed into an
> +early initialization file, @pxref{Initialization Files} for details.
This usage of @pxref is problematic: @pxref generally produces a
period after the cross reference, and that looks as a mistake when the
sentence doesn't end there. So I suggest this instead:
early initialization file, see @ref{Initialization Files}, for details.
(Note the comma after the closing brace.)
> +Executes commands and command files specified by the @samp{-eiex} and
> +@samp{-eix} command line options in their specified order. Only a
> +restricted set of commands can be used with @samp{-eiex} and
> +@samp{eix}, @pxref{Initialization Files} for details.
Same here.
> +The @dfn{early initialization} file is loaded very early in
> +@value{GDBN}'s initialization process, before the interpreter
Whenever you introduce a term, which is indicated by the use of @dfn,
it is a good idea to have a @cindex entry for that term, so that
readers could easily find this basic description of the term.
> +In contrast, the @dfn{general initialization} files are processed
> +later, after @value{GDBN} has finished its own internal initialization
Same here.
> +Throughout the rest of this document the term @dfn{initialization
> +file} refers to one of the general initialization files, not the early
And here.
next prev parent reply other threads:[~2021-02-18 17:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 9:48 [PATCHv2 0/3] Adding startup files to GDB Andrew Burgess
2021-01-26 9:48 ` [PATCHv2 1/3] gdb: refactor the initialization file lookup code Andrew Burgess
2021-01-26 15:09 ` Simon Marchi via Gdb-patches
2021-01-26 9:48 ` [PATCHv2 2/3] gdb: process startup files and startup command line options Andrew Burgess
2021-01-26 15:22 ` Eli Zaretskii via Gdb-patches
2021-01-26 15:32 ` Simon Marchi via Gdb-patches
2021-01-26 15:30 ` Simon Marchi via Gdb-patches
2021-01-26 9:48 ` [PATCHv2 3/3] gdb: add "set startup-quietly" command Andrew Burgess
2021-01-26 15:12 ` Eli Zaretskii via Gdb-patches
2021-02-18 16:41 ` [PATCHv3 0/3] Adding startup files to GDB Andrew Burgess
2021-02-18 16:41 ` [PATCHv3 1/3] gdb: refactor the initialization file lookup code Andrew Burgess
2021-02-18 16:41 ` [PATCHv3 2/3] gdb: process early initialization files and command line options Andrew Burgess
2021-02-18 17:46 ` Eli Zaretskii via Gdb-patches [this message]
2021-03-24 12:10 ` Andrew Burgess
2021-03-24 17:17 ` Eli Zaretskii via Gdb-patches
2021-02-18 16:41 ` [PATCHv3 3/3] gdb: add "set startup-quietly" command Andrew Burgess
2021-02-18 17:32 ` Eli Zaretskii via Gdb-patches
2021-03-24 12:08 ` Andrew Burgess
2021-03-31 20:11 ` [PATCHv3 0/3] Adding startup files to GDB Andrew Burgess
2021-04-02 19:20 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=831rdd5kvk.fsf@gnu.org \
--to=gdb-patches@sourceware.org \
--cc=andrew.burgess@embecosm.com \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox