From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18930 invoked by alias); 10 Sep 2012 20:07:28 -0000 Received: (qmail 18914 invoked by uid 22791); 10 Sep 2012 20:07:27 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Mon, 10 Sep 2012 20:07:12 +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 q8AK7AEG017099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Sep 2012 16:07:10 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8AK78NF031377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 10 Sep 2012 16:07:09 -0400 From: Tom Tromey To: Khoo Yit Phang Cc: Pedro Alves , GDB Patches Subject: Re: python-interactive, and quitting gdb pagination References: <5036634E.6060202@redhat.com> Date: Mon, 10 Sep 2012 20:07:00 -0000 In-Reply-To: (Khoo Yit Phang's message of "Thu, 23 Aug 2012 13:31:43 -0400") Message-ID: <87zk4xbq1f.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (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-09/txt/msg00139.txt.bz2 >>>>> "Yit" == Khoo Yit Phang writes: Yit> Hmm, this happens because quitting from GDB's pager happens to raise Yit> the same error reason, RETURN_QUIT, as typing Ctrl-C, i.e., quitting Yit> from the pager looks exactly like Ctrl-C. I'm not quite sure what the Yit> best way to fix this is; perhaps disable the pager while in Python? Yit> Python's "help" runs a pager too, but I think it's disabled because Yit> stdin/stdout is redirected through GDB. Or alternatively, perhaps Yit> somehow differentiate quitting from the pager or quitting from Ctrl-C, Yit> e.g., with a different error.message? Having Python use the pager is kind of a feature. It lets one write gdb commands in Python that work like other gdb commands. I suppose we could provide a way to bypass the pager. Doing so during python-interactive might make sense, though I am not sure. Tom