From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18881 invoked by alias); 20 Jan 2012 21:40:46 -0000 Received: (qmail 18873 invoked by uid 22791); 20 Jan 2012 21:40:46 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Jan 2012 21:40:33 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0KLeUMb019237 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Jan 2012 16:40:31 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0KLMXsK004551; Fri, 20 Jan 2012 16:22:33 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q0KLMVxC017661; Fri, 20 Jan 2012 16:22:31 -0500 From: Tom Tromey To: Doug Evans Cc: Paul_Koning@dell.com, khooyp@cs.umd.edu, gdb-patches@sourceware.org Subject: Re: Make the "python" command resemble the standard Python interpreter References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB45D@AUSX7MCPC103.AMER.DELL.COM> Date: Sat, 21 Jan 2012 01:56:00 -0000 In-Reply-To: (Doug Evans's message of "Thu, 12 Jan 2012 09:38:13 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00752.txt.bz2 >>>>> "Doug" == Doug Evans writes: Paul> Yes, but I think the benefits outweigh the small imcompatibility. Doug> Yes and no. Doug> - I may want a script that invokes python interactively. Doug> - How do I write a gdb macro that invokes the python repl? I think: (gdb) python gdb.execute('python', from_tty = True) This is sort of weird, but I think it is ok to require a weird command to fill an unusual need. Tom