From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16762 invoked by alias); 22 Jan 2012 16:36:09 -0000 Received: (qmail 16578 invoked by uid 22791); 22 Jan 2012 16:36:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from router-304.cs.umd.edu (HELO bacon.cs.umd.edu) (128.8.127.145) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Jan 2012 16:35:55 +0000 Received: from [10.61.40.39] (unknown [70.42.157.21]) (Authenticated sender: khooyp) by bacon.cs.umd.edu (Postfix) with ESMTPSA id 3DBD3B40736; Sun, 22 Jan 2012 11:35:50 -0500 (EST) Subject: Re: Make the "python" command resemble the standard Python interpreter Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Khoo Yit Phang In-Reply-To: Date: Sun, 22 Jan 2012 16:42:00 -0000 Cc: Khoo Yit Phang , Kevin Pouget , gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <7EE8C917-785E-4F69-83B2-72D4A9A222DC@cs.umd.edu> 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> To: Tom Tromey X-CSD-MailScanner-ID: 3DBD3B40736.A7B96 X-CSD-MailScanner: Found to be clean X-CSD-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=not spam, ALL_TRUSTED -50.00) X-CSD-MailScanner-From: khooyp@cs.umd.edu X-CSD-MailScanner-Watermark: 1327854953.16392@qvx3QdaUcFlI7wotYMxPCA 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/msg00755.txt.bz2 Hi, On Jan 20, 2012, at 4:25 PM, Tom Tromey wrote: >>>>>> "Yit" =3D=3D Khoo Yit Phang writes: >=20 > Yit> It should be possible to replace raw_input with one that works with > Yit> GDB, but that can be another patch. >=20 > 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). >=20 > 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. >=20 > Would you mind filing bugs for these discoveries you've made? > That would be handy. Sure. > 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. Just to mention, I probably won't get to update my patches for the next cou= ple of weeks. Yit January 22, 2012