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: Mon, 25 Jan 2016 22:14:54 +0200 Message-ID: <831t952z7l.fsf@gnu.org> References: <87bn89bguw.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1453752882 23107 80.91.229.3 (25 Jan 2016 20:14:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2016 20:14:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christian Schwarzgruber Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 25 21:14:42 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 1aNnX8-0005Au-18 for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 21:14:42 +0100 Original-Received: from localhost ([::1]:40656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNnX4-0001ox-6R for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 15:14:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNnX0-0001or-B7 for emacs-devel@gnu.org; Mon, 25 Jan 2016 15:14:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNnWx-0008OB-Kz for emacs-devel@gnu.org; Mon, 25 Jan 2016 15:14:34 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNnWx-0008O5-HP; Mon, 25 Jan 2016 15:14:31 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4886 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aNnWu-0000Ah-63; Mon, 25 Jan 2016 15:14:29 -0500 In-reply-to: <87bn89bguw.fsf@gmail.com> (message from Christian Schwarzgruber on Mon, 25 Jan 2016 20:26:31 +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:198811 Archived-At: > From: Christian Schwarzgruber > Date: Mon, 25 Jan 2016 20:26:31 +0100 > > I have question about `gdb(-mi)' in emacs 24.5. I have written a bash debug > wrapper script do choose between various front-ends and do some other stuff. > When I do; M-x gdb RET; delete the default value; enter the script name along > with the other optional parameters, and hit enter. Everything gets initialized > successfully. Debugging the program works as well. > > Example: > Run gdb (like this) dscript --cd=/path/to/the/executable executable ... > > However, the output of the debugee gets not redirected to the *input/output of > ...* buffer. Does someone know what the cause could be. Or how to further triage > this problem/(bug?). > > NOTE: > (gdb) show inferior-tty > shows the correct tty value, i.e. the tty of the *input/output of ...* buffer. You didn't say what does your dscript do to run GDB. It's hard to answer your questions without knowing that. For starters, does it invoke GDB with the -i=mi command-line switch? If not, that's your first problem. Also, if you invoke GDB directly like the default prompt suggests, does the problem go away?