From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [gdb(-mi)] Output of debugee not redirected to *input/output of ...* buffer when starting gdb via a script Date: Tue, 26 Jan 2016 17:44:36 +0200 Message-ID: <83h9i01h23.fsf@gnu.org> References: <87bn89bguw.fsf@gmail.com> <831t952z7l.fsf@gnu.org> <878u3dbbru.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1453823067 25451 80.91.229.3 (26 Jan 2016 15:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 15:44:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christian Schwarzgruber Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 26 16:44:26 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aO5n7-0007GQ-VC for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 16:44:26 +0100 Original-Received: from localhost ([::1]:44715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO5n7-00027e-DJ for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 10:44:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO5mt-00026d-NF for emacs-devel@gnu.org; Tue, 26 Jan 2016 10:44:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO5mq-0005tq-EF for emacs-devel@gnu.org; Tue, 26 Jan 2016 10:44:11 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO5mq-0005tm-BW; Tue, 26 Jan 2016 10:44:08 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1351 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aO5mp-0001IG-Ll; Tue, 26 Jan 2016 10:44:08 -0500 In-reply-to: <878u3dbbru.fsf@gmail.com> (message from Christian Schwarzgruber on Mon, 25 Jan 2016 22:16:21 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198854 Archived-At: > From: Christian Schwarzgruber > Cc: emacs-devel@gnu.org > Date: Mon, 25 Jan 2016 22:16:21 +0100 > > Now, as I wrote this. I tried to not pass the gdb-init-script to GDB (1), and > the output of the program gets redirected correctly to the *input/output* > buffer. I further commented out one line at a time from the gdb-init-script. > Which revealed, that the `run` command at the end of the gdb-init-script is > causing this issue. I should have tried this earlier :-/. > > Anyway, I think this happens probably because the initialization of the GDB > interface in Emacs is not done at the moment the `run` command gets > executed. Just a suspicion but I'm not sure. Yes, I think gdb-mi wants to see the result of the "run" command to set up I/O redirection.