From: Eli Zaretskii <eliz@gnu.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 2/6] set auto-load * main part
Date: Sat, 24 Mar 2012 19:11:00 -0000 [thread overview]
Message-ID: <837gy9u85i.fsf@gnu.org> (raw)
In-Reply-To: <20120324183747.GC26662@host2.jankratochvil.net>
> Date: Sat, 24 Mar 2012 19:37:47 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
This part is OK.
> +Enable or disable auto-loading canned sequences of commands scripts."), _("\
> +Show enablement of auto-loading canned sequences of commands scripts."), _("\
Ouch, "enablement"... How about "state" instead?
> +@item set auto-load local-gdbinit [yes|no]
> +Enable or disable the auto-loading of
> +@xref{Sequences, Canned Sequences of Commands}, found in init file in the
> +current directory.
This clever way of cross-references doesn't work. First @xref
produces a capitalized "See", which is inappropriate in the middle of
a sentence. But even if you replace it with @ref, there's still that
"*note" that will look awkward. And finally, the "Sequences" part is
displayed by Info readers, unlike HTML where the corresponding part of
a reference would not be displayed. So I suggest this instead:
Enable or disable the auto-loading of canned sequences of commands
(@pxref{Sequences}) found in init file in the current directory.
> +@cindex print commands from current directory init file have been auto-loaded
This index entry is way too long. How about
@cindex report auto-loading from current directory
> @smallexample
> -$ gdb -iex "set auto-load-scripts off" myprogram
> +$ gdb -iex "set auto-load python-scripts" myprogram
Did you really mean to omit the "off" part?
> +@item set auto-load no
> +Global disable of any auto-loading sub-commands of @value{GDBN}. You may want
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Globally disable any auto-loading ...
> +Similar to the @ref{objfile-gdb.py file} file @value{GDBN} also tries to load
> +an @file{@var{objfile}-gdb.rc} file containing
> +@xref{Sequences, Canned Sequences of Commands}, as long as
> +@samp{set auto-load gdb-scripts} is set to @samp{yes}.
This @xref needs the same surgery as I show above.
OK with those changes.
next prev parent reply other threads:[~2012-03-24 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-24 18:38 Jan Kratochvil
2012-03-24 19:11 ` Eli Zaretskii [this message]
2012-03-25 16:57 ` Jan Kratochvil
2012-03-25 17:34 ` Eli Zaretskii
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=837gy9u85i.fsf@gnu.org \
--to=eliz@gnu.org \
--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