This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Let "gcore" command accept a suffix argument
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: stanshebs at earthlink dot net, tromey at redhat dot com, stan at codesourcery dot com, brobecker at adacore dot com, msnyder at vmware dot com, gdb-patches at sourceware dot org
- Date: Wed, 06 Jan 2010 05:13:17 -0500
- Subject: Re: [RFC] Let "gcore" command accept a suffix argument
- References: <daef60380911300437o4c616eb2v5ad7bfe99bd3c5e9@mail.gmail.com> <daef60380912120033r1ac03f1ao1f995381db879c82@mail.gmail.com> <m3zl5lscsu.fsf@fleche.redhat.com> <daef60380912141756h1eab3217o4364857729fd799b@mail.gmail.com> <m3d42gniwn.fsf@fleche.redhat.com> <daef60380912151957t312f3497l1e4022ce3dd8cbc4@mail.gmail.com> <4B29018C.6060307@codesourcery.com> <m31vioaxv0.fsf@fleche.redhat.com> <4B3BEDCC.9040103@earthlink.net> <daef60381001040642h2e8b3919u221f61d43b23d395@mail.gmail.com> <daef60381001052257q2068a8fbmaacd026b8d5cef49@mail.gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Hui Zhu <teawater@gmail.com>
> Date: Wed, 6 Jan 2010 14:57:32 +0800
> Cc: gdb-patches ml <gdb-patches@sourceware.org>
>
> I make a new patch that eval command use "" to point out the simple command.
> If want add " in normal string. Use \"
> If we want add \ in normal string. Use \\
> It can be use like:
> (gdb) eval "echo \""$a++"\""
> "7"(gdb) eval "echo \""$a++"\""
> "8"(gdb) eval "echo \""$a++"\""
> "9"(gdb) eval "echo \""$a++"\""
> "10"(gdb) eval "echo \""$a++"\""
> "11"(gdb) eval "echo \""$a++"\""
> "12"(gdb) eval "echo \""$a++"\""
> "13"(gdb) eval "echo \""$a++"\""
>
> Please help me review it.
Thanks. This doc string:
> + add_com ("eval", no_class, eval_command, _("\
> +Call command with variable."));
Should be much more detailed, and in particular say when quotes should
be used and how to specify a literal quote character.
It also needs an update for the manual.
TIA