This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]