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


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'

Thanks,
Hui



On Tue, Dec 15, 2009 at 01:09, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>
>>> I change it to:
>>> eval echo "++$a"
>
> I'm afraid I don't like this approach either.
>
> I think quoting expressions is very ugly. ?Nothing else in gdb does
> this. ?Also, AFAIK it breaks completion. ?Furthermore, this
> implementation ignores the possibility of quotes embedded in an
> expression.
>
> Please choose some other approach.
>
> thanks,
> Tom
>


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