From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonathan Luntz Newsgroups: gmane.emacs.devel Subject: Re: gdb-ui almosts works in NT Date: Thu, 03 Apr 2003 12:52:17 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E8C74D1.9050407@umich.edu> References: <01C2FA0F.2BB48720@bts-0284.dialup.zetnet.co.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============97871769134612618==" X-Trace: main.gmane.org 1049393045 32224 80.91.224.249 (3 Apr 2003 18:04:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2003 18:04:05 +0000 (UTC) Cc: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 03 20:04:04 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19193q-0008KB-00 for ; Thu, 03 Apr 2003 20:03:38 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19195W-0006nw-00 for ; Thu, 03 Apr 2003 20:05:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19192o-0008EA-00 for emacs-devel@quimby.gnus.org; Thu, 03 Apr 2003 13:02:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19190N-0007hq-00 for emacs-devel@gnu.org; Thu, 03 Apr 2003 13:00:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1918vt-0005Vy-00 for emacs-devel@gnu.org; Thu, 03 Apr 2003 12:55:30 -0500 Original-Received: from srvr5.engin.umich.edu ([141.213.75.23]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1918t3-0003ec-00 for emacs-devel@gnu.org; Thu, 03 Apr 2003 12:52:29 -0500 Original-Received: from umich.edu (jluntz3.engin.umich.edu [141.212.135.54]) by srvr5.engin.umich.edu (8.12.5/8.12.5) with ESMTP id h33HqMTd015027; Thu, 3 Apr 2003 12:52:22 -0500 (EST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en Original-To: Nick Roberts In-Reply-To: <01C2FA0F.2BB48720@bts-0284.dialup.zetnet.co.uk> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12873 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12873 This is a multi-part message in MIME format. --===============97871769134612618== content-type: multipart/alternative; boundary="------------070701080402030806050400" This is a multi-part message in MIME format. --------------070701080402030806050400 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Nick Roberts wrote: > > >>I found something useful. If you do the command "set new-console off" >>at the gdb prompt, it does not open an new dos window, and everything >>works properly. It only works if you do NOT put a -fullname switch on >>the gdb command line. I suppose the right solution would be to have >>gdba automatically execute set new-console off when it starts up (I >>don;t think there's a command line switch for it.) >> >> > >I've looked at this and it seems to work for the simple program that you gave. If, however, you set a breakpoint in your for loop or you add a read >statement then there are buffering problems that I can only solve by using >fflush in my program. Is it possible for GDB or Emacs to flush the inferior? > >Nick > I get the same behavior - the flushing doesn't occur until the next time I read in the loop. --------------070701080402030806050400 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Nick Roberts wrote:
  
I found something useful.  If you do the command "set new-console off" 
at the gdb prompt, it does not open an new dos window, and everything 
works properly.  It only works if you do NOT put a -fullname switch on 
the gdb command line.  I suppose the right solution would be to have 
gdba automatically execute set new-console off when it starts up (I 
don;t think there's a command line switch for it.)
    

I've looked at this and it seems to work for the simple program that you gave. If, however, you set a breakpoint in your for loop or you add a read
statement then there are buffering problems that I can only solve by using
fflush in my program. Is it possible for GDB or Emacs to flush the inferior?

Nick

I get the same behavior - the flushing doesn't occur until the next time I read in the loop.
--------------070701080402030806050400-- --===============97871769134612618== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --===============97871769134612618==--