This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA, doc RFA] Add gdb.add_command_alias (now: alias foo = bar)
- From: Tom Tromey <tromey at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, Pedro Alves <pedro at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Tue, 04 Oct 2011 07:33:00 -0600
- Subject: Re: [RFA, doc RFA] Add gdb.add_command_alias (now: alias foo = bar)
- References: <CADPb22TJc=6vqhFfD7Qe8pf5Ac6rdE+JFscxwBd8CpKoW1u_NQ@mail.gmail.com>
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> I will check this in next week if there are no objections.
No objections from me, but a nit.
Doug> + static const char usage[] = "Usage: alias [-a] [--] ALIAS = COMMAND";
Doug> +
Doug> + if (args == NULL || strchr (args, '=') == NULL)
Doug> + error (_(usage));
For this to work with gettext, the usage string itself must be wrapped
with the N_ macro.
Tom