all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: gdb-ui almosts works in NT
@ 2003-03-31 21:04 Nick Roberts
  2003-04-01  4:28 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Roberts @ 2003-03-31 21:04 UTC (permalink / raw)
  Cc: emacs-devel


> > 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), 

I agree. I'll make this change.

> 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 output from the inferior could be sent directly to the input/output buffer
but the author of this part of the code from gdba.el (Tom Lord?) used cat
because:

;; We want to use comint because it has various nifty and familiar
;; features.  We don't need a process, but comint wants one, so create
;; a dummy one.
(make-comint-in-buffer
(substring (buffer-name) 1 (- (length (buffer-name)) 1))
(current-buffer) "/bin/cat")

> > 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?

I downloaded Emacs for NT and MinGW for the first time today and this didn't
seem to be just a problem with gdb-ui.el. `M-x gdb' from gud.el also sent the
output from the inferior to its own DOS window. Even if `gdb mytest' is run in
a DOS window (no Emacs) then the inferior outputs to its own DOS window and
does not seem able to share the window with gdb like in GNU/Linux.

However, I have no real experience with Emacs for NT, so if you can see changes
that will make it work for this platform too, please install them.

Nick

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: gdb-ui almosts works in NT
@ 2003-04-03 17:29 Nick Roberts
  2003-04-03 17:52 ` Jonathan Luntz
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Roberts @ 2003-04-03 17:29 UTC (permalink / raw)
  Cc: emacs-devel@gnu.org



> 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

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <3E84A28A.2090407@umich.edu>]

end of thread, other threads:[~2003-04-03 17:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-31 21:04 gdb-ui almosts works in NT Nick Roberts
2003-04-01  4:28 ` Eli Zaretskii
2003-04-01 18:55   ` Edward O'Connor
2003-04-01 21:06     ` Nick Roberts
2003-04-01 21:31       ` Stefan Monnier
2003-04-02  4:12         ` Eli Zaretskii
2003-04-02 14:14           ` Stefan Monnier
2003-04-03  3:49             ` Eli Zaretskii
2003-04-03  7:55               ` Jason Rumney
2003-04-02  4:08       ` Eli Zaretskii
2003-04-02 17:28   ` Jonathan Luntz
  -- strict thread matches above, loose matches on Subject: below --
2003-04-03 17:29 Nick Roberts
2003-04-03 17:52 ` Jonathan Luntz
     [not found] <3E84A28A.2090407@umich.edu>
2003-03-31  6:45 ` Eli Zaretskii
2003-03-31 15:29   ` Stefan Monnier
2003-03-31 16:38   ` Jonathan Luntz
2003-03-31 19:17     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.