From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6693 invoked by alias); 12 Jan 2012 18:21:05 -0000 Received: (qmail 6685 invoked by uid 22791); 12 Jan 2012 18:21:05 -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-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 18:20:52 +0000 Received: by vcge1 with SMTP id e1so1868523vcg.0 for ; Thu, 12 Jan 2012 10:20:51 -0800 (PST) Received: by 10.221.13.2 with SMTP id pk2mr2713535vcb.71.1326392451803; Thu, 12 Jan 2012 10:20:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.221.13.2 with SMTP id pk2mr2713527vcb.71.1326392451712; Thu, 12 Jan 2012 10:20:51 -0800 (PST) Received: by 10.220.229.1 with HTTP; Thu, 12 Jan 2012 10:20:51 -0800 (PST) In-Reply-To: References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB45D@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB49D@AUSX7MCPC103.AMER.DELL.COM> Date: Thu, 12 Jan 2012 18:30:00 -0000 Message-ID: Subject: Re: Make the "python" command resemble the standard Python interpreter From: Doug Evans To: Paul_Koning@dell.com Cc: khooyp@cs.umd.edu, 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/msg00422.txt.bz2 [sorry, for the resend, didn't realize my mailer would pick rich html] On Thu, Jan 12, 2012 at 9:51 AM, Doug Evans wrote: > On Thu, Jan 12, 2012 at 9:47 AM, =A0 wrote: >>>... >>>> - I may want a script that invokes python interactively. >>>> - How do I write a gdb macro that invokes the python repl? >>>> >>>> Solve those problems, and provide a migration path away from the old >>>> behaviour, and then you've got something. >>> >>>As a strawman, a new command, python-foo, could be provided [python-code= ? =A0python-script?] that had the "old" behaviour. >> >> Nice solution. > > btw, would we ever want to pass options to the python repl? > If that might ever occur, then we don't want python with arguments to > be the old behaviour. Or preferably have a new command should the need arise (I like python-repl, but I realize repl may be too obscure :-) ). [so plain "python" would invoke the repl and "python foo" would evaluate foo in python] OK, I think I'm OK with where this is going.