This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Let "gcore" command accept a suffix argument
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Hui Zhu <teawater at gmail dot com>, Michael Snyder <msnyder at vmware dot com>, gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Fri, 11 Dec 2009 11:05:58 +0100
- Subject: Re: [RFC] Let "gcore" command accept a suffix argument
- References: <daef60380911300437o4c616eb2v5ad7bfe99bd3c5e9@mail.gmail.com> <20091130162246.GE4034@adacore.com> <4B141157.3070709@vmware.com> <20091130185341.GI4034@adacore.com> <4B141469.5030402@vmware.com> <20091130190619.GJ4034@adacore.com> <4B1428F0.7090608@vmware.com> <daef60380912091827u6ff7127bp1d03998a40932914@mail.gmail.com> <daef60380912091832t5c443609he8a3fb46d1a4cd50@mail.gmail.com> <m3ein24v26.fsf@fleche.redhat.com>
> Or you could try to introduce syntax allowing arbitrary expressions.
> One idea that comes to mind is to reuse some code and make eval work
> like printf:
>
> eval "echo %s %d", $foo, $bar + 87
>
> Now that I write it that seems weird :-)
I don't think it seems weird. I find this pretty nice, and since we
already have printf, I wonder how hard it would be to implement this?
--
Joel