Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: Andrew Burgess <andrew.burgess@embecosm.com>, gdb-patches@sourceware.org
Subject: Re: [PATCHv2 2/3] gdb: process startup files and startup command line options
Date: Tue, 26 Jan 2021 10:30:34 -0500	[thread overview]
Message-ID: <b521c760-97cd-3412-5556-64a278ef2a52@polymtl.ca> (raw)
In-Reply-To: <99a396b1db7b7a6caacdcbd966236cd59fc6fc2b.1611653889.git.andrew.burgess@embecosm.com>

On 2021-01-26 4:48 a.m., Andrew Burgess wrote:> Adds the ability to process commands at a new phase during GDB's
> startup.  This phase is earlier than the current initialisation file
> processing, before GDB has produced any output.
> 
> The number of commands that can be processed at this early stage will
> be limited, and it is expected that the only commands that would be
> processed at this stage will relate to some of the fundamentals of how
> GDB starts up.
> 
> Currently the only commands that it makes sense to add to this startup
> file are those like 'set style version ....' as the version string is
> displayed during startup before the standard initialization files are
> parsed.  As such this commit fully resolved bug cli/25956.
> 
> This commit adds a mechanism to find these startup files as well as
> some corresponding command line flags.
> 
> The startup files that GDB will currently check for are
> ~/.config/gdb/gdbstartup (on Linux like systems) or ~/.gdbstartup if
> the former is not found.
> 
> The output of 'gdb --help' has been extended to include a list of the
> startup files being processed.

Functionally, that all LGTM.

Sorry if I'm late to the game, but I have to admit that I find the name
a bit confusing.  If I didn't already know which is which, I couldn't
tell which of "init" and "startup" happens earlier than the other.
"init" and "earlyinit" would be unambiguous, for example.  But this is a
minor detail, feel free to ignore.  The documentation still makes it
clear.

Simon

  parent reply	other threads:[~2021-01-26 15:30 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 [this message]
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
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=b521c760-97cd-3412-5556-64a278ef2a52@polymtl.ca \
    --to=gdb-patches@sourceware.org \
    --cc=andrew.burgess@embecosm.com \
    --cc=simon.marchi@polymtl.ca \
    /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