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: Mon, 31 Mar 2003 11:38:06 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E886EEE.3020500@umich.edu> References: <3E84A28A.2090407@umich.edu> <9003-Mon31Mar2003084528+0300-eliz@elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0078344200029798472==" X-Trace: main.gmane.org 1049128797 11261 80.91.224.249 (31 Mar 2003 16:39:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2003 16:39:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Mar 31 18:39:56 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 1902Jk-0002uB-00 for ; Mon, 31 Mar 2003 18:39:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1902Ne-0006Oa-00 for ; Mon, 31 Mar 2003 18:43:30 +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 1902JR-0006bw-01 for emacs-devel@quimby.gnus.org; Mon, 31 Mar 2003 11:39:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1902Io-0006VQ-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 11:38:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1902Ie-0006In-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 11:38:21 -0500 Original-Received: from srvr5.engin.umich.edu ([141.213.75.23]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1902IY-000670-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 11:38:14 -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 h2VGc7hV015536; Mon, 31 Mar 2003 11:38:07 -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: Eli Zaretskii In-Reply-To: <9003-Mon31Mar2003084528+0300-eliz@elta.co.il> 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:12766 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12766 This is a multi-part message in MIME format. --===============0078344200029798472== content-type: multipart/alternative; boundary="------------090406020702060201010402" This is a multi-part message in MIME format. --------------090406020702060201010402 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: >[Redirected to emacs-devel.] > > >>Date: Fri, 28 Mar 2003 14:29:14 -0500 >>From: Jonathan Luntz >> >>I'm not usre if this classifies as a bug >> >> > >IMHO, it does. > > > >>I'm trying to get gdba >>working under NT Emacs. Almost everything works. One minor issue is >>that gdb-ui.el is hardcoded at one point to use "/bin/cat", so I just >>put a copy of the msys (mingw) cat.exe there. >> >> > >It's wrong for Emacs to use such code, IMHO. It should either invoke >`cat' (and let it be found along PATH), or, better, implement some >code that would eliminate the need for an external program altogether, >since `cat' is not guaranteed to be available on every platform >supported by Emacs. > >It strikes me that it woyldn't be hard to eliminate the need for >`cat', since Emacs already has a means to visit files. > > > >>The only problem is I can't >>get the program IO to run in the input/output window in emacs. It >>runs always in its own DOS window. >> >> > >What compiler did you use to compile that program? Was that MinGW's >GCC? > Yes - I used mingw to compile: C:> g++ --version g++ (GCC) 3.2 (mingw special 20020817-1) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. My code is very simple: #include using namespace std; int main() { int i; for (i=1; i<100; i++) { //printf("hello world %i\n",i); cout << "hello world " << j << "\n"; } } neither printf nor cout work. Jon --------------090406020702060201010402 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Eli Zaretskii wrote:
[Redirected to emacs-devel.]
  
Date: Fri, 28 Mar 2003 14:29:14 -0500
From: Jonathan Luntz <jluntz@umich.edu>

I'm not usre if this classifies as a bug
    

IMHO, it does.

  
I'm trying to get gdba
working under NT Emacs.  Almost everything works.  One minor issue is
that gdb-ui.el is hardcoded at one point to use "/bin/cat", so I just
put a copy of the msys (mingw) cat.exe there.
    

It's wrong for Emacs to use such code, IMHO.  It should either invoke
`cat' (and let it be found along PATH), or, better, implement some
code that would eliminate the need for an external program altogether,
since `cat' is not guaranteed to be available on every platform
supported by Emacs.

It strikes me that it woyldn't be hard to eliminate the need for
`cat', since Emacs already has a means to visit files.

  
The only problem is I can't
get the program IO to run in the input/output window in emacs.  It
runs always in its own DOS window.
    

What compiler did you use to compile that program?  Was that MinGW's
GCC?

Yes - I used mingw to compile:
C:> g++ --version
g++ (GCC) 3.2 (mingw special 20020817-1)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


My code is very simple:

#include <iostream>
using namespace std;
int main()
{
  int i;
  for (i=1; i<100; i++) {
    //printf("hello world %i\n",i);
    cout << "hello world " << j << "\n";
  }
}

neither printf nor cout work.

Jon
--------------090406020702060201010402-- --===============0078344200029798472== 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 --===============0078344200029798472==--