Re: [RFC] Let "gcore" command accept a suffix argument

Eli Zaretskii
2010-01-06T10:13:25Z

> 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