From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25491 invoked by alias); 12 Jul 2011 05:18:00 -0000 Received: (qmail 25482 invoked by uid 22791); 12 Jul 2011 05:17:59 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jul 2011 05:17:41 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D24152AC1E2; Tue, 12 Jul 2011 05:17:40 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: Re: PATCH Date: Tue, 12 Jul 2011 08:34:00 -0000 User-Agent: KMail/1.13.7 (Linux/2.6.39; KDE/4.6.3; x86_64; ; ) Cc: Abhijit Halder , Tom Tromey References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart16382797.3BKtTrhRYI"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201107120117.42796.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00297.txt.bz2 --nextPart16382797.3BKtTrhRYI Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1021 On Tuesday, July 12, 2011 00:24:15 Abhijit Halder wrote: please do not top post in your replies > How if we just put a condition check whether the entered string after > pipe (|) is numeric. For e.g. > (gdb) thread apply all bt | grep foobar > Here the entered string after | is grep foobar which is not numeric. > But here (gdb) print var | 0x50 is numeric. that wont work as it's "EXPR | EXPR". so you could do: (gdb) print x | x or if your variable was named "vim", it's impossible to determine the user'= s=20 intention if they wrote something like: (gdb) print x | vim do they want the variable "vim" ? or do they want to shell out to `vim` ? i think we'll have to introduce a dedicated operator here that doesn't show= up=20 in C expressions. how about "|&" ? this is a bashism for doing=20 redirection+pipe in one go, so it'll be somewhat familiar to people. along those lines, i wonder if generic redirection operators would be usefu= l=20 too. something like: (gdb) thread apply all bt >& file -mike --nextPart16382797.3BKtTrhRYI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJOG9j2AAoJEEFjO5/oN/WBQf4QAJPuDj4pAjAbSRxkXroc8cDZ DW6UalXAaQ/pWjkjVeZSR8NMAdj+2Bg7z5MPFye/2lwpsbUbVgQZQB2BzAQHKFpC 5BS2J6Q6awt/R7EDOAJxHGlx43B0Pujv7tr5sdPjKqQ1cz+4QcHspwwd1zXBMvR9 YWUp0uvOPslBA5USJ62Hv3Jhy31tbDRi7oiEWJGlSChupLL2VTAXcvrn+AzX4zy5 MLzqpJjUsJQHDN1/2UTgcH0PA2K6jCnfPh2qXI5r9a3MxC7n0s1DVvYmxWZbTDNd lacS3gjMVvnQC8ghtjEYk3CRxeh2RdemrwbMJnvBSkczfbwp3PrWdwj1lzDR1Xd4 jv99chY5KNTpu5gjJRqB+wE8NqnO/BVsJwPbKtDTe9V8bIe373H5cssf8clrLb+H Q5dcF9NLi5JYykgi+I8QI4oltff5RHuHItZrw4Ok9IvnR7k25xG13AXz80TMXxVS IVWgZyW+dyI1l3zQ1CRhHAOQ/U8ZqAdW6+5SD5rkHdm+M9YAbUhoa4F7ZgdGlit3 kuAVQXc2XorUGQVPsmsJDtW3WqiAlvAmxdtldIfAp2N+MVCAQ09mmsJJjJ7HoyFI 2CXq7Fzv/0rYiW04g1yJpiSrXGWkdX62cq2O72fPenL9re7arz1ByfOgcz/aZ52M dysD9yj+taOxqgOQQFxH =jt21 -----END PGP SIGNATURE----- --nextPart16382797.3BKtTrhRYI--