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

Hui Zhu teawater@gmail.com
Wed Dec 16 03:58:00 GMT 2009


On Wed, Dec 16, 2009 at 03:20, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>
>>> Agree with you.  Add " with variable make it oddness.
>>> What about change it to others, like:
>>> eval echo {++$a}
>
>>> Or add " to simple string, like:
>>> eval echo ++$a".core"
>>> Or
>>> eval echo ++$a'.core'
>
> What do you think of the idea of making it printf-like?

It's not bad.  But need a lot of extend work that the old patch don't have.
And this command doesn't need convert a value from 1 type to another.
So I want use the "" way.


>
> Some other approach, like the above two, would be ok with me, provided
> that quoting is treated properly -- it should be possible to write any
> command using eval.  So, there must be some way to quote whatever
> special characters are used by eval.
>

If use "" the point the normail string, just the " and \ are the
special characters.
If we want add " in normal string.  Use \"
If we want add / in normal string.  Use \\
Do you think it's OK?

Thanks,
Hui



More information about the Gdb-patches mailing list