Mail Archives: djgpp/1996/07/16/06:36:25
On Mon, 15 Jul 1996, Steve Higgins wrote:
> As I understand it, GDB just uses the standard input/output to communicate
> with the outside world.
>
> So rather than re-inventing the wheel, would it be possible to intercept the
> relevent int 21h routines, spawn GDB, then write the code to translate the
> data sent to and from the standard i/o into your RHIDE display updates etc.
You are talking about a multi-tasker that will work on MSDOS in protected
mode. That is a very good idea, but it's not so trivial to accomplish.
If you (or anybody else) would to write such a beast, there will be
undoubtedly a lot of very useful applications that could take advantage
of it.
I suspect that Robert wanted to avoid such a major undertaking.
> I understand that in the un*x world there are a number of gdb front ends,
> including the emacs front end, written in this way (they are able to use
> pipes of course!).
On Unix, the fork/exec pair of calls and the `pipe' function are a
standard feature of the OS. But DOS is not Unix (at least until somebody
writes these functions for DJGPP).
- Raw text -