From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs Date: Wed, 28 Oct 2015 12:20:45 -0700 Message-ID: <87ziz2x0j6.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446060091 18523 80.91.229.3 (28 Oct 2015 19:21:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 19:21:31 +0000 (UTC) To: 21777@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 20:21:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZrWHc-0007bQ-73 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 20:21:16 +0100 Original-Received: from localhost ([::1]:40349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHb-0007g7-Ai for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 15:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHS-0007YU-0w for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWHO-00007q-Rj for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHO-00007k-NS for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrWHO-0003ed-CT for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2015 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144606005914026 (code B ref -1); Wed, 28 Oct 2015 19:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2015 19:20:59 +0000 Original-Received: from localhost ([127.0.0.1]:42868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrWHL-0003eA-BP for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45228) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrWHJ-0003e2-Ak for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWHG-00005X-3z for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHF-00005N-Vd for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHE-0007Ly-9I for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:20:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWHB-0008VW-3L for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:20:52 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHA-0008UW-JM for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:20:48 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 11683208E0 for ; Wed, 28 Oct 2015 15:20:47 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 28 Oct 2015 15:20:47 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=WqiUVFwnpELg83Tos175f6CvpYk =; b=jJj4Zwt58EnKqHuNq8bC8+AP1pS0Kyweyv9QtvuY0qSZlO0WLwCeqfoyhja Olwcp9/nFyPfLMLF+2PhcuT40MdvM6wTyIx9NhAuIpHXVccUlOHuG3ROgEwlDXR7 7dXLqH1cHkmWq8GAaqWtt8exQ/ZZeloLvSdjaPYAZlp2F0Rc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Wq iUVFwnpELg83Tos175f6CvpYk=; b=XgEDRY1jvttZiKdwt8DO4O4pvtWWzmQD7b UsvADjZ9rpv5iAK/wDbq+SN4fvKBBp0Q212TwBDHg1vGHVIyDsaIu1UNH9wDIBcM sYiGBnlqvqnx5xKf8gIi6qbxJ3iqMjBQTzGr6IWYbkJDPfe2T09XvtyiQ/4A2wOp gIptu+ZtI= X-Sasl-enc: L2VID3i2b+hPbEcvlqrN7bHN0/ZmrPcckzXuH/rKcy5Y 1446060046 Original-Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A4CB6801AD for ; Wed, 28 Oct 2015 15:20:46 -0400 (EDT) Original-Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZrWH7-00083P-Kw for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 12:20:45 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108119 Archived-At: Hi. A regression occurred since 24.4.1, and gud-gdb now uses the pager by default. This means that when gdb wants to output more than N lines, it says ---Type to continue, or q to quit--- This is intended for gdb running in the console, but makes using gdb from emacs much less pleasant since extra user interaction becomes necessary. At worst, gdb sessions meant to be non-interactive (ones that have self-continuing breakpoint commands for instance) become forcefully interactive. Recipe: 1. emacs -Q 2. M-x gud-gdb (select any executable; it doesn't matter) 3. gdb command: show height Emacs 24.4.1 says (gdb) show height Number of lines gdb thinks are in a page is unlimited. This is good. The pager is off, and emacs will receive all gdb output without extra user interaction. Emacs from git says (gdb) show height Number of lines gdb thinks are in a page is 24. This is bad. After 24 lines of output gdb will pester the user. I haven't attempted to do any debugging here yet. Probably will look at it eventually, but if somebody knows what's wrong immediately, that'd be great