From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24783 invoked by alias); 12 Jan 2012 20:59:16 -0000 Received: (qmail 24771 invoked by uid 22791); 12 Jan 2012 20:59:15 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 20:59:03 +0000 Received: by vbnl22 with SMTP id l22so808472vbn.0 for ; Thu, 12 Jan 2012 12:59:02 -0800 (PST) Received: by 10.52.65.180 with SMTP id y20mr2578320vds.12.1326401942502; Thu, 12 Jan 2012 12:59:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.65.180 with SMTP id y20mr2578312vds.12.1326401942325; Thu, 12 Jan 2012 12:59:02 -0800 (PST) Received: by 10.220.229.1 with HTTP; Thu, 12 Jan 2012 12:59:02 -0800 (PST) In-Reply-To: References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB45D@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB49D@AUSX7MCPC103.AMER.DELL.COM> <751D4ADF-BB24-4E23-BCFB-DB1F2BB11CFF@cs.umd.edu> Date: Thu, 12 Jan 2012 21:22:00 -0000 Message-ID: Subject: Re: Make the "python" command resemble the standard Python interpreter From: Doug Evans To: Khoo Yit Phang Cc: Paul_Koning@dell.com, gdb-patches@sourceware.org X-System-Of-Record: true Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2012-01/txt/msg00431.txt.bz2 On Thu, Jan 12, 2012 at 10:36 AM, Khoo Yit Phang wrote: >>> Instead of making a new command, we can add an option to, say "python /= i", that forces the interpreter to start, so that you can define a GDB macr= o that starts a Python interpreter (when from_tty is false). That would ret= ain compatibility with the current behavior. >> >> Heh. =A0/ is for display options (e.g. x/i $pc), - is for other kinds of >> options (e.g. symbol-file -readnow foo). >> But yeah, that's another alternative. =A0[It feels more problematic, >> e.g. the caveat you mention.] > > For reference, the caveat I mentioned was in an email rejected by the mai= ling list server: that was for "python -i" which would disallow the python = script "-i". > > "python /i" would not have this caveat, since "/i" isn't a valid Python e= xpression. Yeah, but we shouldn't use /i. [it also feels a bit too hacky]