From: Doug Evans <dje@google.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch#2 3/6] set auto-load local-gdbinit warn-and-*
Date: Thu, 29 Mar 2012 20:58:00 -0000 [thread overview]
Message-ID: <CADPb22QUiZL0GDJBfsKwRWSuk8uadMyApAZsFBmOuRo02tbEJQ@mail.gmail.com> (raw)
In-Reply-To: <20120329091258.GD25449@host2.jankratochvil.net>
On Thu, Mar 29, 2012 at 2:12 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> Hi,
>
> it does not change any default behavior (that's done in [patch 6/6]) but it
> gives an option to warn on .gdbinit files (which become deprecated).
Deprecating .gdbinit files requires a NEWS entry.
[But maybe that's in a later patch.]
And are we *really* sure we want to deprecate them?
I don't read every thread (and forget half I do read :-() so I may
have missed a high level decision.
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -141,7 +141,7 @@ set auto-load python-scripts on|off
> show auto-load python-scripts
> Control auto-loading of Python script files.
>
> -set auto-load local-gdbinit on|off
> +set auto-load local-gdbinit on|off|warn-and-on|warn-and-off
> show auto-load local-gdbinit
> Control loading of init file (.gdbinit) from current directory.
>
While I realize you might be trying to avoid adding another option,
combining warn on/off with auto-load on/off is a bit odd. Is it
possible to look at this differently and have the warning apply to
more than just local-gdbinit (thus being a more useful option and thus
being less of a pain to add)?
E.g., a warning for using deprecated features or some such.
[Or maybe we want a warning for each such feature, dunno.]
> + struct stat statbuf;
> +
> + if (fstat (fd, &statbuf) == 0
> + && memcmp (&statbuf, &local_gdbinit_stat,
> + sizeof (statbuf)) == 0)
> + local_gdbinit = NULL;
This assumes absence of padding.
next prev parent reply other threads:[~2012-03-29 20:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 9:13 Jan Kratochvil
2012-03-29 20:58 ` Doug Evans [this message]
2012-03-30 6:28 ` Eli Zaretskii
2012-03-30 6:33 ` Doug Evans
2012-03-30 6:45 ` Jan Kratochvil
2012-03-30 18:08 ` suspend: " Jan Kratochvil
2012-03-30 7:26 ` Eli Zaretskii
2012-04-02 20:31 ` [doc patch] objfile -> @var{objfile} [Re: [patch#2 3/6] set auto-load local-gdbinit warn-and-*] Jan Kratochvil
2012-04-02 21:10 ` Eli Zaretskii
2012-04-02 21:13 ` Jan Kratochvil
2012-04-02 21:19 ` Eli Zaretskii
2012-04-03 18:33 ` [patch#2 3/6] set auto-load local-gdbinit warn-and-* Jan Kratochvil
2012-04-05 16:15 ` Eli Zaretskii
2012-04-05 21:00 ` Jan Kratochvil
2012-04-05 16:28 ` Doug Evans
2012-04-05 16:53 ` Jan Kratochvil
2012-04-05 17:03 ` Doug Evans
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=CADPb22QUiZL0GDJBfsKwRWSuk8uadMyApAZsFBmOuRo02tbEJQ@mail.gmail.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/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