From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19656 invoked by alias); 20 Jan 2012 21:25:39 -0000 Received: (qmail 19622 invoked by uid 22791); 20 Jan 2012 21:25:37 -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:25:25 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0KLPNF9019998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Jan 2012 16:25:23 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0KLPNMG031090; Fri, 20 Jan 2012 16:25:23 -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 q0KLPLTd018148; Fri, 20 Jan 2012 16:25:21 -0500 From: Tom Tromey To: Khoo Yit Phang Cc: Kevin Pouget , gdb-patches@sourceware.org Subject: Re: Make the "python" command resemble the standard Python interpreter References: <94906C8E-C23D-4DA3-989D-DDCCFA20FC35@cs.umd.edu> <48619020-0550-4888-9F05-158DB065252B@cs.umd.edu> <19AA588F-ED95-47C6-A562-6FF30AF22A38@cs.umd.edu> Date: Fri, 20 Jan 2012 21:31:00 -0000 In-Reply-To: <19AA588F-ED95-47C6-A562-6FF30AF22A38@cs.umd.edu> (Khoo Yit Phang's message of "Wed, 11 Jan 2012 16:05:59 -0500") 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/msg00748.txt.bz2 >>>>> "Yit" == Khoo Yit Phang writes: Yit> It should be possible to replace raw_input with one that works with Yit> GDB, but that can be another patch. Yit> Making Python's readline module work under GDB is not possible, since Yit> it re-initializes libreadline and generally assumes that libreadline Yit> is completely under Python's control (and libreadline itself has no Yit> support for nesting/reentrancy). Yit> It should also be possible to write a wrapper module around readline Yit> that avoids conflicts with GDB, but that'll take some more work. Would you mind filing bugs for these discoveries you've made? That would be handy. I didn't re-read the patches yet. I plan to wait until your paperwork is done; then please just re-post the latest versions with commentary. thanks, Tom