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


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


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