* [patch] Add -q in help info and doc
@ 2014-06-06 8:13 Mingjie Xing
2014-06-06 8:23 ` Eli Zaretskii
2014-06-06 10:26 ` Pedro Alves
0 siblings, 2 replies; 7+ messages in thread
From: Mingjie Xing @ 2014-06-06 8:13 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
Hello,
I notice that "-q" and "--silent" options are not mentioned in gdb's
help information. This patch just adds them and updates the document.
Besides, most options in gdb document are using "-" prefix instead of "--".
ChangeLog
* gdb.texinfo (Invoking GDB): Add -q and --quiet.
* main.c (print_gdb_help): Add -q and --silent.
Is it OK?
Best regards,
Mingjie
[-- Attachment #2: gdb-help-info.patch --]
[-- Type: text/x-patch, Size: 1154 bytes --]
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 9f7fa18..a0fb66d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -885,10 +885,11 @@ This will cause @code{@value{GDBP}} to debug @code{gcc}, and to set
@code{gcc}'s command-line arguments (@pxref{Arguments}) to @samp{-O2 -c foo.c}.
You can run @code{@value{GDBP}} without printing the front material, which describes
-@value{GDBN}'s non-warranty, by specifying @code{-silent}:
+@value{GDBN}'s non-warranty, by specifying @code{--silent}
+(or @code{-q}/@code{--quiet}):
@smallexample
-@value{GDBP} -silent
+@value{GDBP} --silent
@end smallexample
@noindent
diff --git a/gdb/main.c b/gdb/main.c
index a9fc378..108759d 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -1173,7 +1173,8 @@ Output and user interface control:\n\n\
fputs_unfiltered (_("\
--dbx DBX compatibility mode.\n\
--xdb XDB compatibility mode.\n\
- --quiet Do not print version number on startup.\n\n\
+ -q, --quiet, --silent\n\
+ Do not print version number on startup.\n\n\
"), stream);
fputs_unfiltered (_("\
Operating modes:\n\n\
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch] Add -q in help info and doc
2014-06-06 8:13 [patch] Add -q in help info and doc Mingjie Xing
@ 2014-06-06 8:23 ` Eli Zaretskii
2014-06-06 10:26 ` Pedro Alves
1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2014-06-06 8:23 UTC (permalink / raw)
To: Mingjie Xing; +Cc: gdb-patches
> From: Mingjie Xing <mingjie.xing@gmail.com>
> Date: Fri, 6 Jun 2014 16:12:35 +0800
>
> I notice that "-q" and "--silent" options are not mentioned in gdb's
> help information. This patch just adds them and updates the document.
>
> Besides, most options in gdb document are using "-" prefix instead of "--".
>
> ChangeLog
>
> * gdb.texinfo (Invoking GDB): Add -q and --quiet.
> * main.c (print_gdb_help): Add -q and --silent.
>
> Is it OK?
Fine with me, thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] Add -q in help info and doc
2014-06-06 8:13 [patch] Add -q in help info and doc Mingjie Xing
2014-06-06 8:23 ` Eli Zaretskii
@ 2014-06-06 10:26 ` Pedro Alves
2014-06-09 1:33 ` Mingjie Xing
1 sibling, 1 reply; 7+ messages in thread
From: Pedro Alves @ 2014-06-06 10:26 UTC (permalink / raw)
To: Mingjie Xing, gdb-patches
On 06/06/2014 09:12 AM, Mingjie Xing wrote:
> Hello,
>
> I notice that "-q" and "--silent" options are not mentioned in gdb's
> help information. This patch just adds them and updates the document.
I notice it's missing from the man page too.
(cd doc; make man; man ./gdb.1)
--
Pedro Alves
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] Add -q in help info and doc
2014-06-06 10:26 ` Pedro Alves
@ 2014-06-09 1:33 ` Mingjie Xing
2014-06-09 4:39 ` Sergio Durigan Junior
2014-06-09 9:33 ` Pedro Alves
0 siblings, 2 replies; 7+ messages in thread
From: Mingjie Xing @ 2014-06-09 1:33 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
2014-06-06 18:26 GMT+08:00 Pedro Alves <palves@redhat.com>:
> I notice it's missing from the man page too.
>
> (cd doc; make man; man ./gdb.1)
Yes. But before fixing it, I think It should be better that we can
firstly unify the
long option format. Currently, we use "--" prefix in the help
information, while "-"
in gdb.texinfo. It's confusing for users, though gdb accepts both kinds.
Best regards,
Mingjie
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] Add -q in help info and doc
2014-06-09 1:33 ` Mingjie Xing
@ 2014-06-09 4:39 ` Sergio Durigan Junior
2014-06-09 9:33 ` Pedro Alves
1 sibling, 0 replies; 7+ messages in thread
From: Sergio Durigan Junior @ 2014-06-09 4:39 UTC (permalink / raw)
To: Mingjie Xing; +Cc: Pedro Alves, gdb-patches
On Sunday, June 08 2014, Mingjie Xing wrote:
> 2014-06-06 18:26 GMT+08:00 Pedro Alves <palves@redhat.com>:
>> I notice it's missing from the man page too.
>>
>> (cd doc; make man; man ./gdb.1)
>
> Yes. But before fixing it, I think It should be better that we can
> firstly unify the
> long option format. Currently, we use "--" prefix in the help
> information, while "-"
> in gdb.texinfo. It's confusing for users, though gdb accepts both kinds.
I agree. And last time I checked, I saw that our manpage is missing
useful options. I was planning to tackle this in some spare time (not
likely anytime soon), but if Mingjie wants to do that too...
Thanks,
--
Sergio
GPG key ID: 65FC5E36
Please send encrypted e-mail if possible
http://blog.sergiodj.net/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch] Add -q in help info and doc
2014-06-09 1:33 ` Mingjie Xing
2014-06-09 4:39 ` Sergio Durigan Junior
@ 2014-06-09 9:33 ` Pedro Alves
2014-06-09 9:42 ` Mingjie Xing
1 sibling, 1 reply; 7+ messages in thread
From: Pedro Alves @ 2014-06-09 9:33 UTC (permalink / raw)
To: Mingjie Xing; +Cc: gdb-patches
On 06/09/2014 02:32 AM, Mingjie Xing wrote:
> 2014-06-06 18:26 GMT+08:00 Pedro Alves <palves@redhat.com>:
>> I notice it's missing from the man page too.
>>
>> (cd doc; make man; man ./gdb.1)
>
> Yes. But before fixing it, I think It should be better that we can
> firstly unify the
> long option format. Currently, we use "--" prefix in the help
> information, while "-"
> in gdb.texinfo. It's confusing for users, though gdb accepts both kinds.
Yes, it's confusing, agreed, but I'd call that an orthogonal issue.
But if you want to fix both issues, then that's great.
TBC, I'm not suggesting you _have_ to fix the man page.
--
Pedro Alves
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-09 9:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 8:13 [patch] Add -q in help info and doc Mingjie Xing
2014-06-06 8:23 ` Eli Zaretskii
2014-06-06 10:26 ` Pedro Alves
2014-06-09 1:33 ` Mingjie Xing
2014-06-09 4:39 ` Sergio Durigan Junior
2014-06-09 9:33 ` Pedro Alves
2014-06-09 9:42 ` Mingjie Xing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox