From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: gdb fails to flush output (msys2) Date: Tue, 15 Mar 2022 16:34:00 +0200 Message-ID: <83lexbi8tj.fsf@gnu.org> References: <86y21caikh.fsf@csic.es> <83o828k6a7.fsf@gnu.org> <867d8wa05w.fsf@csic.es> <837d8wjsur.fsf@gnu.org> <834k40js23.fsf@gnu.org> <86h77zwn9b.fsf@csic.es> <77bec550-18e8-bcb9-0d32-b023f01eb3a4@secure.kjonigsen.net> <86y21btklc.fsf@csic.es> <86ee33l4rj.fsf@csic.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 15 15:35:20 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nU8Gd-0003nC-In for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 15:35:19 +0100 Original-Received: from localhost ([::1]:57542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU8Gb-00050q-S5 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 10:35:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8Fc-0004IF-RA for emacs-devel@gnu.org; Tue, 15 Mar 2022 10:34:18 -0400 Original-Received: from [2001:470:142:3::e] (port=39124 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8FX-0000D8-7B; Tue, 15 Mar 2022 10:34:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=1TXXcsxTqp0bUZvODQW9KxqeWxW5vh121ZJv0m+4F0I=; b=oCH6G905K66Hl+YebW/J yU1OeARERbiw0VB2mTGd3RcS8Uzvp809HxBsAM4n2CA7+sXr9xJJRxUFVtpi4XFHsju37FenL0raV 2F43N4AvyNV46/DvVoQirO+zUdneUkfhTQ4hgGPDOHfogHvv2Y3pF3rz3YCu4x3riJwTVC2xaaoLU vonjE/vd610GwwuPCtbXiAXJMbpG8Jh4cO5XVUxqGipdlTdO24Itbd4xtROBBUwSOPcxZ6EYbFqrr gd3k51BTIKLnryi3eX3gQDcNTdMNGIHJUs3MrBc3M9YmBxnl8rPZD5YxHThjdzJp8yPfVv/Uouxhz a68+0T2+0RFO8w==; Original-Received: from [87.69.77.57] (port=3262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8FV-0004sQ-7k; Tue, 15 Mar 2022 10:34:10 -0400 In-Reply-To: <86ee33l4rj.fsf@csic.es> (juanjose.garciaripoll@gmail.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287187 Archived-At: > From: Juan José García-Ripoll > > Date: Tue, 15 Mar 2022 14:33:20 +0100 > > I just found the old interface to gdb is still in gud.el, under the name > gud-gdb. When I use M-x gud-gdb instead of M-x gdb, I can run the > program and debug it without any problem (output is not blocked). > > It therefore seems that whatever issues are hiding in Emacs' support for > GDB's new facilities for programming ("-i=mi" command line option and > corresponding code in GUD). Yes, I suspected that. You didn't answer my question about where you downloaded this GDB. Is this the "usual" MSYS2 GDB, and if so, is it linked against UCRT or the "normal" MSVCRT runtime?