GNU bug report logs - #64914
[PATCH] * gdb-mi.el: allow disabling the gdb io buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: StrawberryTea <look@HIDDEN>; Keywords: moreinfo; merged with #64913; dated Fri, 28 Jul 2023 07:12:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 64914 <at> debbugs.gnu.org:


Received: (at 64914) by debbugs.gnu.org; 17 Feb 2025 12:18:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 17 07:18:42 2025
Received: from localhost ([127.0.0.1]:44189 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tk05C-0004Iu-DQ
	for submit <at> debbugs.gnu.org; Mon, 17 Feb 2025 07:18:42 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51056)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tk058-0004IK-0C
 for 64914 <at> debbugs.gnu.org; Mon, 17 Feb 2025 07:18:40 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tk052-0005Wk-HZ; Mon, 17 Feb 2025 07:18:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=ql1vGK10l/KgLT9SKujZ+H/P90GrbeXBKh+368mzYm0=; b=FsRgvniiGPyy
 t71Tw2qn7fqWpmZlWZAno0616OTKM1B7cQy8hIB+zAHYJfaUn7FpW8ND6QeKofWRBPOZV/Ce1CNGs
 vMhklCkHBHieSjhYSvaT96Bj/zjpa1FMd6AVDnZZDk3pIFauU8C2Lq8yFtPnTz7Yksg8rrgrxz7w4
 0clkBCXzsVsjU6t0+ycVCwRi8p8IBZcu9VaCK1D/r5JwsT7DyoaX9wkphxSqpox6U9vuNa8ZoThZ6
 szeb2MTmlSjvdz6tNqG8Mx+NNu81gF2YfZz4e7WAIkw0sosG9Mwgxbp/9wZSRfszdgQsGJygmFvp9
 sw4JKCr9axjUk+fnIimcKQ==;
Date: Mon, 17 Feb 2025 14:18:27 +0200
Message-Id: <86ikp8bw8c.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: StrawberryTea <look@HIDDEN>
In-Reply-To: <87v7t9nz27.fsf@HIDDEN> (message from StrawberryTea on
 Sun, 16 Feb 2025 20:24:16 -0500)
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
References: <v8e4x22w.fsf@HIDDEN> <83mszgjnf7.fsf@HIDDEN>
 <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@HIDDEN>
 <831qgsjaur.fsf@HIDDEN>
 <CADwFkmksEDZ27aX6a1x3nzSU6LY_M5L4CkzAiuaeSf+-NA08VA@HIDDEN>
 <86pljmi5ri.fsf@HIDDEN> <87v7t9nz27.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64914
Cc: 64914 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: StrawberryTea <look@HIDDEN>
> Date: Sun, 16 Feb 2025 20:24:16 -0500
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Stefan Kangas <stefankangas@HIDDEN>
> >> Date: Thu, 13 Feb 2025 02:07:41 -0600
> >> Cc: LemonBreezes <look@HIDDEN>, 64914 <at> debbugs.gnu.org
> >>
> >> Eli Zaretskii <eliz@HIDDEN> writes:
> >>
> >> > But OK, if someone wants to downgrade gdb-mi this way, why not them
> >> > have it.
> >>
> >> I'd actually rather lean towards closing this towards as a wontfix.
> >
> > I don't mind, but maybe the OP does.
> Actually, the patch implementing gdb-display-io-buffer as a configurable
> option was already merged into master a long time ago. It's in Emacs 30.1.

Thanks, closing.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.
Removed tag(s) patch. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64914 <at> debbugs.gnu.org:


Received: (at 64914) by debbugs.gnu.org; 13 Feb 2025 08:54:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 03:54:54 2025
Received: from localhost ([127.0.0.1]:40311 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiUzl-0006Mi-MZ
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 03:54:54 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39804)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tiUzj-0006MU-Ex
 for 64914 <at> debbugs.gnu.org; Thu, 13 Feb 2025 03:54:52 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tiUzd-0004HU-Ru; Thu, 13 Feb 2025 03:54:46 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=jezC6SwnU3o78EWXyZB5qbA3TO9oROJYvejLVlfVgCM=; b=TLZiwM2JzwKu
 dX6HlwmwYlQ1Fymt3bbSXjrr/2Ci+xyg2XDYqLpm9tYVjYfiDVdowlcfdMOloknBFXcSnEvz1VUVQ
 BdGFs8lhBIRdGlbYTSSj5w9zamhcZkf+QhiJPDZ1F2ltf05TTnKQ0oZhVbmUjtqrrQpjME5VSezUP
 BrSyM9vmZi2lSqdIfTMp+GCEjqItZMsKCh9jUFjJlriMMjCAHBymmzlbP4qH8v0Fcf7KEK48DBNXW
 W+JX8uobVa7BBpy3JORXcX/zwYZZsN0AexftZpS4CZtZ8Jkv3vIQyvqcb3nlNfFY90lfWBiY72jwK
 daZ0v3zZSFMn8Hp8bNOh+Q==;
Date: Thu, 13 Feb 2025 10:54:41 +0200
Message-Id: <86pljmi5ri.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CADwFkmksEDZ27aX6a1x3nzSU6LY_M5L4CkzAiuaeSf+-NA08VA@HIDDEN>
 (message from Stefan Kangas on Thu, 13 Feb 2025 02:07:41 -0600)
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
References: <v8e4x22w.fsf@HIDDEN> <83mszgjnf7.fsf@HIDDEN>
 <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@HIDDEN>
 <831qgsjaur.fsf@HIDDEN>
 <CADwFkmksEDZ27aX6a1x3nzSU6LY_M5L4CkzAiuaeSf+-NA08VA@HIDDEN>
X-Spam-Score: -0.3 (/)
X-Debbugs-Envelope-To: 64914
Cc: 64914 <at> debbugs.gnu.org, look@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

> From: Stefan Kangas <stefankangas@HIDDEN>
> Date: Thu, 13 Feb 2025 02:07:41 -0600
> Cc: LemonBreezes <look@HIDDEN>, 64914 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > But OK, if someone wants to downgrade gdb-mi this way, why not them
> > have it.
> 
> I'd actually rather lean towards closing this towards as a wontfix.

I don't mind, but maybe the OP does.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.

Message received at 64914 <at> debbugs.gnu.org:


Received: (at 64914) by debbugs.gnu.org; 13 Feb 2025 08:07:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 03:07:51 2025
Received: from localhost ([127.0.0.1]:40169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiUGF-0001Ev-CJ
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 03:07:51 -0500
Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:51450)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tiUGD-0001Ee-Aj
 for 64914 <at> debbugs.gnu.org; Thu, 13 Feb 2025 03:07:49 -0500
Received: by mail-ed1-x52b.google.com with SMTP id
 4fb4d7f45d1cf-5de849a0b6cso999806a12.2
 for <64914 <at> debbugs.gnu.org>; Thu, 13 Feb 2025 00:07:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739434063; x=1740038863; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=2pDL+mC+oxEpJrAvIlkhYk1ltCaBROk9IG5s/i+X86I=;
 b=D3svIoK9AbNNUP+QaGAdoNr5hyTC0DaNpDtv/xHv3AGQneRFkMepkeTm+fzPpkg6IA
 oyOqJT3JAtUM9x+ZfSrYZKgzI83sNdKl2IEsQP2aHT05zm8QAsSN7uycd8oR+pkDBqYF
 bNl+DdNeSIG+vx6Ft3CEXNhzeweq3/P6xCXGG92MasGxodRAEldLjD4nuLXCpjkfkQf+
 Ee8MRT5glOtm7FUGRYxdbBCwvLD99BSCRvqkp0Fb4JgcwFUSlSm+zilxeOWkf1n57B9N
 O7jhXN92VxvRwiXyDtezlP/ZXeWfCd+yzOXdG30bdRxHteGr9WQW9DD9l+v2m7+29juO
 keeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739434063; x=1740038863;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=2pDL+mC+oxEpJrAvIlkhYk1ltCaBROk9IG5s/i+X86I=;
 b=wM+OM4AW+oThfQUK6FyCI3uUHdURP+yh1yG157s3t7YxWYt0Fzwpx4lBCNRRnglQjJ
 j9cKaFlH9qlYKfJpm4XACpRSC1BVP7dDuJRoap+iBx4nadMTWKYHFhclbLojU40H1jdv
 xS3NWnTdGolOt2BXwx9ww4TBpUbnZBxCtH/rlu/4qxFLQ3ysLZlAepuXIaplx+Ev4V/k
 P9vsrGAonk8/7TDGPOuSonh3zTDSq4Df+S3AGzoki624teXar76963td/QPVUFQ6v9Rj
 V+vLLTdfi8I6U7cHknb5yl/97Mcott3TatGR/JC/A3Wxr11r/8u1uCldJrY2gWBkm2CW
 AaVA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVJleBaMSS3EE1lrlm7lzhOsEogmYEG2THjmEtsYzi77Z6HiTZYmL5jFbjuVi0kS6Ab1Rt6rw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxOcCOYm4JuC1lLtSt71P4KvJlY0xmugl8zSuE9qyiQpbxOk+xR
 fo+AYQLVlFZVO9iijenYpUMM+u7ips4EON3JeWtW3BDqmxcCbWYlb/DsKSJjEix9Jc/PPntOkUF
 DV90+YBu8aPYkROY+DIJon/AiZZEMI2vpl9pd6Q==
X-Gm-Gg: ASbGnctFAQV/caSvrkWLsYt46B5uEOCAcY41SY+NT412x9HQrWVNTVfvhqlzPnZ98AD
 sV0eYW9zTL3aK0a4b0uiU6mfQ52KK7eznupuY0jCyGJLlScMQVyK6Ba7eubEet8Tkx941TwlQMr
 0=
X-Google-Smtp-Source: AGHT+IHr6TgWPSHcC5l9V0jCu/E2GxKDWM0x0qdXhfClnojh+DbNTNvabRDs143wKKDJLzCK/6kRPM16vudvnuAasQw=
X-Received: by 2002:a05:6402:3606:b0:5dc:1395:1d3a with SMTP id
 4fb4d7f45d1cf-5dec9d3231emr1856270a12.1.1739434062959; Thu, 13 Feb 2025
 00:07:42 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 13 Feb 2025 02:07:41 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <831qgsjaur.fsf@HIDDEN>
References: <v8e4x22w.fsf@HIDDEN> <83mszgjnf7.fsf@HIDDEN>
 <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@HIDDEN>
 <831qgsjaur.fsf@HIDDEN>
MIME-Version: 1.0
Date: Thu, 13 Feb 2025 02:07:41 -0600
X-Gm-Features: AWEUYZl_fiJx-IYndorU3jrfbV3kg8K45ZpYljPNx8t9Vlyn4IqqrvrhmJnzQK0
Message-ID: <CADwFkmksEDZ27aX6a1x3nzSU6LY_M5L4CkzAiuaeSf+-NA08VA@HIDDEN>
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Eli Zaretskii writes: >> Date: Fri,
 28 Jul 2023 10:54:02 -0400
 >> From: LemonBreezes >> Cc: 64914 <at> debbugs.gnu.org >> >> No,
 setting gdb-display-io-nopopup
 to nil does not prevent the program IO from being split off into [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:52b listed in]
 [list.dnswl.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (stefankangas[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 2.0 PDS_OTHER_BAD_TLD      Untrustworthy TLDs
 [URI: strawberrytea.xyz (xyz)]
 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
 lines
X-Debbugs-Envelope-To: 64914
Cc: 64914 <at> debbugs.gnu.org, LemonBreezes <look@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Fri, 28 Jul 2023 10:54:02 -0400
>> From: LemonBreezes <look@HIDDEN>
>> Cc: 64914 <at> debbugs.gnu.org
>>
>> No, setting gdb-display-io-nopopup to nil does not prevent the program IO from being split off into the
>> gdb-inferior-io buffer, nor does it prevent the gdb-inferior-io buffer from popping up when debugging is
>> started.
>
> I said set it non-nil, not nil. nil is its default value, under which
> it does pop up the IO buffer.  You want it not to pop up, so you
> should set the variable to t.
>
>> The purpose of setting gdb-display-io-buffer to nil is to prevent the gdb-inferior-io buffer from
>> being created altogether, instead outputting the program output to the GDB buffer itself. A user in the
>> Doom Emacs Discord told me this used to be the behavior of gdb-mi.el but that it was changed
>> without giving the user the option to opt out. I have not investigated that but the comments say that is a
>> feature of GDB 6.4 onward.
>
> If the want the old behavior, why do they use gdb-mi at all? why not
> use "M-x gud-gdb" instead?  That behaves exactly like the old GDB
> interface.

No further updates here within 18 months.

Does that mean that "M-x gud-gdb" is all that is needed to satisfy this
use case?  If not, what is still missing?

> But OK, if someone wants to downgrade gdb-mi this way, why not them
> have it.

I'd actually rather lean towards closing this towards as a wontfix.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64914 <at> debbugs.gnu.org:


Received: (at 64914) by debbugs.gnu.org; 28 Jul 2023 15:48:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 28 11:48:02 2023
Received: from localhost ([127.0.0.1]:45898 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qPPhC-0007H4-Fr
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2023 11:48:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56374)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qPPhA-0007Fw-53
 for 64914 <at> debbugs.gnu.org; Fri, 28 Jul 2023 11:48:01 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qPPh3-00064n-M1; Fri, 28 Jul 2023 11:47:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=oJFClKG1EKkbe6wjbypwJrvwuJqitSE4pFt5BW2Z8oY=; b=Se5ropWmH1vt
 AJw4GozV8L4stdkX0kZIQLuMcAtY39hXbwq2SvitUHCAEUhnB01fJdxrZAcoP2G5IzmcAePllSlWh
 SiRoUNimbd9dSSde+7WPomWpAX4qoGFTZTGAHz5S4Q3z8UYo2K6SVaLGcgWdOYvpqdzcUwdjhSbcZ
 P1XwFj1Pxcj/X14meWrEvUrWMzgNGSf9Butcv4u0sCgf7eMbCwug7gVB07pYdW5xjPheicVjRyHA0
 I8MxVculIxTGAs1w0ladH+N2D2gZHqs8Q34WU1TCI10yfB/sGezeZUPpIlyEZi6gQRH/UFHzcarxZ
 Hmol8sEXKo12fRu46BvbHg==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qPPgm-0006Uu-D0; Fri, 28 Jul 2023 11:47:52 -0400
Date: Fri, 28 Jul 2023 18:48:28 +0300
Message-Id: <831qgsjaur.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: LemonBreezes <look@HIDDEN>
In-Reply-To: <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@HIDDEN> (message
 from LemonBreezes on Fri, 28 Jul 2023 10:54:02 -0400)
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
References: <v8e4x22w.fsf@HIDDEN> <83mszgjnf7.fsf@HIDDEN>
 <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64914
Cc: 64914 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Fri, 28 Jul 2023 10:54:02 -0400
> From: LemonBreezes <look@HIDDEN>
> Cc: 64914 <at> debbugs.gnu.org
> 
> No, setting gdb-display-io-nopopup to nil does not prevent the program IO from being split off into the
> gdb-inferior-io buffer, nor does it prevent the gdb-inferior-io buffer from popping up when debugging is
> started.

I said set it non-nil, not nil. nil is its default value, under which
it does pop up the IO buffer.  You want it not to pop up, so you
should set the variable to t.

> The purpose of setting gdb-display-io-buffer to nil is to prevent the gdb-inferior-io buffer from
> being created altogether, instead outputting the program output to the GDB buffer itself. A user in the
> Doom Emacs Discord told me this used to be the behavior of gdb-mi.el but that it was changed
> without giving the user the option to opt out. I have not investigated that but the comments say that is a
> feature of GDB 6.4 onward.

If the want the old behavior, why do they use gdb-mi at all? why not
use "M-x gud-gdb" instead?  That behaves exactly like the old GDB
interface.

But OK, if someone wants to downgrade gdb-mi this way, why not them
have it.  So I have a comment to your patch:

> +(defcustom gdb-display-io-buffer t
> +  "When non-nil, display the `gdb-inferior-io' buffer.  Otherwise,
> +send program output to the GDB buffer."
> +  :type 'boolean
> +  :group 'gdb
> +  :version "30.1")

The first line of a doc string should be a single complete sentence.

And please describe the behavior in the doc string better: this is not
about displaying the IO buffer, this is about not separating the
program's I/O from the GDB I/O and not redirecting the program's I/O
to a separate buffer.

And finally, please accompany your patch with a ChangeLog-style commit
log message (see CONTRIBUTE for details, if you need them).

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.

Message received at 64914 <at> debbugs.gnu.org:


Received: (at 64914) by debbugs.gnu.org; 28 Jul 2023 15:40:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 28 11:40:51 2023
Received: from localhost ([127.0.0.1]:45892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qPPaF-00072d-2s
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2023 11:40:51 -0400
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50125)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <look@HIDDEN>) id 1qPOrN-0005zF-2j
 for 64914 <at> debbugs.gnu.org; Fri, 28 Jul 2023 10:54:29 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 0019A5C01A9;
 Fri, 28 Jul 2023 10:54:23 -0400 (EDT)
Received: from imap47 ([10.202.2.97])
 by compute3.internal (MEProxy); Fri, 28 Jul 2023 10:54:24 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm1; t=
 1690556063; x=1690642463; bh=mqnk+Yg09sgnmIKah/4ThFtniITnfk66EBM
 gS2+yGv8=; b=EfBG6j5owTEn7+mqlT9YnWZrpv59f12kcfVxixNoQ8532x4gNQW
 QRyBfolfH5yzrpdPeEzhdZ6WWINvBiHsrHgSDvhqfj9iCe8X00G44NwsjHU0BLqs
 3xOeMIcEmIf+w95BmJ2Je8y52rrWciZuFX28MyFEb0RMlV13tRBIQy/a9XJikopU
 9fJyOU6KIpG3fgTCGpvS9fnThyw4fm6cocYIqwSEARPpyLtnPawAaDWryMAdBFgw
 GEkolriv0nH2xsE4B70yHlosVjgPB7a7MmrmvtkGrWHDNWzz1kBZSksNb/KDllC1
 Zl+HlgrGGSJxie4mzAQT8udvUwRpIsVH64g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; t=1690556063; x=1690642463; bh=mqnk+Yg09sgnm
 IKah/4ThFtniITnfk66EBMgS2+yGv8=; b=TYycqCGSf8tsikHHxUzwx/lNQ6HT7
 Z/HwfaKrdkvaLB/YgvjZPT6T3mJNE6nqbLz8nZubbSTwgG303yZg2/l/JpwTNwdC
 0ZRBWkxSjajqZkv3NXxVjQ5fzNqOQ1hnVwPbx8YD0YpExaTokjR1449HeOzjBQxI
 WizGEFTTCAx8xGpUbDyaMuB8QhwILa80NVDCeoQgaigc6+jirZEJBMbR+IymII15
 zfSvKHeQPEO3szFGCUeJBo7o4y+ywaTsWW+GQgZ6FIlPwzDRTV5oTV1UxFbi/XfA
 acytcfULKgsxHiE1xzwnB7JIFbUODpYlVnz+XB63hD0G7O3jfkMfPypqA==
X-ME-Sender: <xms:ntbDZFyQ5drVqjeZxy5fIZS7-XtWNXoNU0zpRgo3I3xwTRXYSrWwWw>
 <xme:ntbDZFQ7N5h7uObS6StZzCUDR0I9UCmakmD--KmjhtoUuYxlduqS1ZvbJYpF6Qhnq
 9NeNRaS8NCbkV0Jyb4>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieeigdejlecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg
 hrlhcuvffnffculdefhedmnecujfgurhepofgfggfkjghffffhvfevufgtsegrtderreer
 redtnecuhfhrohhmpefnvghmohhnuehrvggviigvshcuoehlohhokhesshhtrhgrfigsvg
 hrrhihthgvrgdrgiihiieqnecuggftrfgrthhtvghrnhepveekfeeifefgfefhfefftdei
 jefhleeitdefveekueevteejieeihefhgeekffeinecuvehluhhsthgvrhfuihiivgeptd
 enucfrrghrrghmpehmrghilhhfrhhomheplhhoohhksehsthhrrgifsggvrhhrhihtvggr
 rdighiii
X-ME-Proxy: <xmx:ntbDZPUSou_DiU1n1LxFsScp-9FVoNX756rXV8foJ0U6Yl7Bcos-Gg>
 <xmx:ntbDZHicydmdKV28mN4eK2XFa34WZp7WV_fZ4A_KPZ3EM8K1PEgb8g>
 <xmx:ntbDZHAzT2jaNbU-cXuIC3XJeoZHcvpUftBKFbI4_aCgKyJp9W2ZEg>
 <xmx:n9bDZK8E4Bud7WLkGXorNT6IV9OirFnVcvUeu4vipwiKhBAPyIc2Dw>
Feedback-ID: id85149b6:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id 729BAA60077; Fri, 28 Jul 2023 10:54:22 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b
Mime-Version: 1.0
Message-Id: <65da37ba-9f1e-4f42-8a27-2f7b0f60c700@HIDDEN>
In-Reply-To: <83mszgjnf7.fsf@HIDDEN>
References: <v8e4x22w.fsf@HIDDEN> <83mszgjnf7.fsf@HIDDEN>
Date: Fri, 28 Jul 2023 10:54:02 -0400
From: LemonBreezes <look@HIDDEN>
To: "Eli Zaretskii" <eliz@HIDDEN>
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
Content-Type: multipart/alternative; boundary=1dae4124516f441cb5fd2076ad255e04
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 64914
X-Mailman-Approved-At: Fri, 28 Jul 2023 11:40:47 -0400
Cc: 64914 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.9 (/)

--1dae4124516f441cb5fd2076ad255e04
Content-Type: text/plain

No, setting gdb-display-io-nopopup to nil does not prevent the program IO from being split off into the gdb-inferior-io buffer, nor does it prevent the gdb-inferior-io buffer from popping up when debugging is started. The purpose of setting gdb-display-io-buffer to nil is to prevent the gdb-inferior-io buffer from being created altogether, instead outputting the program output to the GDB buffer itself. A user in the Doom Emacs Discord told me this used to be the behavior of gdb-mi.el but that it was changed without giving the user the option to opt out. I have not investigated that but the comments say that is a feature of GDB 6.4 onward.

On Fri, Jul 28, 2023, at 7:17 AM, Eli Zaretskii wrote:
> > From: StrawberryTea <look@HIDDEN>
> > Date: Thu, 27 Jul 2023 20:33:39 -0400
> > 
> > This change allows the user to disable the `gdb-inferior-io' buffer.
> > This is useful for users that prefer a more classical gdb experience
> > where you just have the GDB window and the source window.
> 
> Sorry, I don't think I understand why you need a new defcustom.
> Doesn't setting gdb-display-io-nopopup non-nil already achieve what
> you want?  It does here.
> 
> Thanks.
> 

--1dae4124516f441cb5fd2076ad255e04
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>No, setting gdb=
-display-io-nopopup to nil does not prevent the program IO from being sp=
lit off into the&nbsp;gdb-inferior-io buffer, nor does it prevent the&nb=
sp;gdb-inferior-io buffer from popping up when debugging is started. The=
 purpose of setting&nbsp;gdb-display-io-buffer to nil is to prevent the =
gdb-inferior-io buffer from being created altogether, instead outputting=
 the program output to the GDB buffer itself. A user in the Doom Emacs D=
iscord told me this used to be the behavior of gdb-mi.el but that it was=
 changed without giving the user the option to opt out. I have not inves=
tigated that but the comments say that is a feature of GDB 6.4 onward.</=
div><div><br></div><div>On Fri, Jul 28, 2023, at 7:17 AM, Eli Zaretskii =
wrote:<br></div><blockquote type=3D"cite" id=3D"qt" style=3D""><div>&gt;=
 From: StrawberryTea &lt;<a href=3D"mailto:look@HIDDEN">look@=
strawberrytea.xyz</a>&gt;<br></div><div>&gt; Date: Thu, 27 Jul 2023 20:3=
3:39 -0400<br></div><div>&gt;&nbsp;<br></div><div>&gt; This change allow=
s the user to disable the `gdb-inferior-io' buffer.<br></div><div>&gt; T=
his is useful for users that prefer a more classical gdb experience<br><=
/div><div>&gt; where you just have the GDB window and the source window.=
<br></div><div><br></div><div>Sorry, I don't think I understand why you =
need a new defcustom.<br></div><div>Doesn't setting gdb-display-io-nopop=
up non-nil already achieve what<br></div><div>you want?&nbsp; It does he=
re.<br></div><div><br></div><div>Thanks.<br></div><div><br></div></block=
quote><div><br></div></body></html>
--1dae4124516f441cb5fd2076ad255e04--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.
Merged 64913 64914. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64914 <at> debbugs.gnu.org:


Received: (at 64914) by debbugs.gnu.org; 28 Jul 2023 11:16:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 28 07:16:17 2023
Received: from localhost ([127.0.0.1]:43891 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qPLSD-0000HT-BJ
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2023 07:16:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39048)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qPLSA-0000HH-Jn
 for 64914 <at> debbugs.gnu.org; Fri, 28 Jul 2023 07:16:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qPLS5-0001Zm-7O; Fri, 28 Jul 2023 07:16:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Ogwe9dlKlNmfG7kp5ULOkgLmY1b9iDP9u4Jec1+H23w=; b=e58yBahqsMwD
 AFSO+0v8UeUH5V7FfESqyC4wFTGqx2BCrzt65ubszC9yR3y2ct/+hdRQ3ErFVYYxjx8ZkwD2OWGV5
 DgoXUdL3S7yWJNkyb6VAMhKkfzHtLetwpnCAl34/KewDdbRceXxDFLn0faCGEOACTuDW5wLhDH+NB
 qSn6xn0FIP6F7zVzy6Lb4sRTn1H+d9YQgFHGUoKYYtRHoTe9/slEMpT2ek7ZmZgg1r9aAQbkbcEo2
 vzaaDtteTXk1ZCCjxSBaN2iXkJzHp6ejHLusBSqFWt8znJ0VcycXJwsl/VW8vsoCycaB64ElyYQza
 RBw36KWKJheXdspb/mKK2g==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qPLS4-0001FQ-1Z; Fri, 28 Jul 2023 07:16:08 -0400
Date: Fri, 28 Jul 2023 14:17:00 +0300
Message-Id: <83mszgjnf7.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: StrawberryTea <look@HIDDEN>
In-Reply-To: <v8e4x22w.fsf@HIDDEN> (message from StrawberryTea on
 Thu, 27 Jul 2023 20:33:39 -0400)
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
References: <v8e4x22w.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64914
Cc: 64914 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: StrawberryTea <look@HIDDEN>
> Date: Thu, 27 Jul 2023 20:33:39 -0400
> 
> This change allows the user to disable the `gdb-inferior-io' buffer.
> This is useful for users that prefer a more classical gdb experience
> where you just have the GDB window and the source window.

Sorry, I don't think I understand why you need a new defcustom.
Doesn't setting gdb-display-io-nopopup non-nil already achieve what
you want?  It does here.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jul 2023 07:11:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 28 03:11:51 2023
Received: from localhost ([127.0.0.1]:43545 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qPHdf-0007cH-JV
	for submit <at> debbugs.gnu.org; Fri, 28 Jul 2023 03:11:51 -0400
Received: from lists.gnu.org ([2001:470:142::17]:38016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <look@HIDDEN>) id 1qPCBE-0006Uk-Vq
 for submit <at> debbugs.gnu.org; Thu, 27 Jul 2023 21:22:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <look@HIDDEN>)
 id 1qPCB9-0005zk-KE
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jul 2023 21:22:03 -0400
Received: from wout5-smtp.messagingengine.com ([64.147.123.21])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <look@HIDDEN>)
 id 1qPCB8-0006YK-2G
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jul 2023 21:22:03 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id D03CC32000E5
 for <bug-gnu-emacs@HIDDEN>; Thu, 27 Jul 2023 21:22:00 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Thu, 27 Jul 2023 21:22:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 strawberrytea.xyz; h=cc:content-type:content-type:date:date:from
 :from:in-reply-to:message-id:mime-version:reply-to:sender
 :subject:subject:to:to; s=fm1; t=1690507320; x=1690593720; bh=e+
 U6Fu3BsmWr8aIQrEJvmtPq6W0CT3nS/XTH9tMiXEE=; b=Rc+8/8yxdyW8d2eRmH
 i2oyupsQ+HZntZwExBahAsqjhOSCiRl5h0Q4tFh60fzXB0efzgB46P3VChNbRVML
 A+3HBC4lvHrggth7oFKnnxIcpzK6Z7DKq6o+frXzpmuUa0HjojtYGp1rPfrNBTZS
 2RBsytUoBkkeS8v/N8/sz4HYR2+VQz8/6QZRI+PrvpZDwwTQNlzdI4sFWL9Rngyr
 vs4GCWfwaNXO4qQFg/V70auFPm2zgCm9bJZDPKEiKDKYOdxU0MB+3S2CvNpPA2Na
 ZMc68mcv3oUjJKDw9+yuz8fsApwsP/cUveofy1ubtumKdNtRw9go+JfCiqYF+ni2
 FywA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1690507320; x=1690593720; bh=e+U6Fu3BsmWr8aIQrEJvmtPq6W0CT3nS/XT
 H9tMiXEE=; b=KU22eHjn0ETVL0t4zVaLqfOAhKIw/cwzB+1sq72ggEbpndgkSVH
 B3o6fK9nuRDUkrBQRdL29/Jh0tM7+2k7/QYOx6VJsLVfYidwUUNDxivwt3JKJ52N
 0meB1R7r6rb/Von0DvXTSv343g0QxhFqVf6fi5iGaTtYCd9TKnfzckjaE80ULKGU
 UAMu9lIM0C7sD2JvhbIgQS3g5gW0B8CFyeOnPRC2I/GOPNRueEXSSXHTE32whefp
 xhgjkLU82jjS2m8MsijB+t+mOrA697LbsinbnXAmUIgatTQ8qPvlzVvz1oB4bROA
 SGHw/KQz48lMtu3X63MpQ5bJ21CQuG/VYLw==
X-ME-Sender: <xms:OBjDZBzyAN-FMjyp7xK0YWO49MfbtIWCu1bR-Dh_3p0lMItzSeW1og>
 <xme:OBjDZBRaso6yr3e-Fd0RMDOX4d-eBoNHiUvbm_U3xVZaisfqlc93pGOvB41fvcnVv
 PRC9HeOUabtHmazOJA>
X-ME-Received: <xmr:OBjDZLWqrljUcvDJ0zUnJ8CXei-YdDlFVD4ktP8UAXaza5LC3bOVhWlNqns>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieehgdegfecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhephffvuf
 ffkfggtgesthdtredttddttdenucfhrhhomhepufhtrhgrfigsvghrrhihvfgvrgcuoehl
 ohhokhesshhtrhgrfigsvghrrhihthgvrgdrgiihiieqnecuggftrfgrthhtvghrnheptd
 fgueffhffhgffhjefghedvheefkeefheekfeeiveegveegfeevudeuhfehleffnecuvehl
 uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhoohhksehsth
 hrrgifsggvrhhrhihtvggrrdighiii
X-ME-Proxy: <xmx:OBjDZDi5fElgv6a03JMwd6kun2zGpqvtRY4m-MPhahr_f8DoQGnhow>
 <xmx:OBjDZDDxZuQ8cnE76c895Qk33bAcwJ3koPPo8NK0HQRMd1frHQMg3g>
 <xmx:OBjDZMJtrDWX_5Guh150z4OV0p8UA0aaBIibgy-Umx2OXTpseh7DNQ>
 <xmx:OBjDZG87mAtfaMX5nZVRe6wwEZZ8gRIpP4JDMPk42eKLvM32MkLcwA>
Feedback-ID: id85149b6:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Thu, 27 Jul 2023 21:21:59 -0400 (EDT)
From: StrawberryTea <look@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
Date: Thu, 27 Jul 2023 20:33:39 -0400
Message-ID: <v8e4x22w.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.21;
 envelope-from=look@HIDDEN; helo=wout5-smtp.messagingengine.com
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FROM_FMBLA_NEWDOM28=0.799, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 28 Jul 2023 03:11:46 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.4 (/)

This change allows the user to disable the `gdb-inferior-io' buffer.
This is useful for users that prefer a more classical gdb experience
where you just have the GDB window and the source window.
---
 lisp/progmodes/gdb-mi.el | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index a1091de43e9..0d6d7ab02c0 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1098,9 +1098,10 @@ detailed description of this mode.
                      (if gdb-debuginfod-enable "on" "off"))
              'gdb-debuginfod-message)
 
-  (gdb-get-buffer-create 'gdb-inferior-io)
-  (gdb-clear-inferior-io)
-  (gdb-inferior-io--init-proc (get-process "gdb-inferior"))
+  (when gdb-display-io-buffer
+    (gdb-get-buffer-create 'gdb-inferior-io)
+    (gdb-clear-inferior-io)
+    (gdb-inferior-io--init-proc (get-process "gdb-inferior")))
 
   (when (eq system-type 'windows-nt)
     ;; Don't create a separate console window for the debuggee.
@@ -1828,6 +1829,13 @@ this trigger is subscribed to `gdb-buf-publisher' and called with
   :group 'gdb
   :version "25.1")
 
+(defcustom gdb-display-io-buffer t
+  "When non-nil, display the `gdb-inferior-io' buffer.  Otherwise,
+send program output to the GDB buffer."
+  :type 'boolean
+  :group 'gdb
+  :version "30.1")
+
 (defun gdb-inferior-filter (proc string)
   (unless (string-equal string "")
     (let (buf)
-- 
2.41.0






Acknowledgement sent to StrawberryTea <look@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64914; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 17 Feb 2025 12:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.