[mercury-users] Debugger question

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Feb 6 01:19:27 AEDT 2001


On 05-Feb-2001, Ralph Becket <rbeck at microsoft.com> wrote:
> >From Fergus Henderson on 03/02/2001 05:22:11
> > 
> > You can achieve that using the `--tty' option to mdb.
> > Create a new virtual terminal or xterm window,
> > use the `tty' command to figure out the name of the device
> > for that terminal, run e.g. `sleep 99999' in that tty,
> > and then on another terminal/window run
> > `mdb --tty /dev/whatever ./myprog'.
> 
> This being a Monday morning, I can't see how that fixes the problem.
> How do I deliver the contents of file `foo' to stdin of a process
> running in the tty other than cutting and pasting?  Presumably just
> doing `cat foo > /dev/whatever' from elsewhere sends foo to stdout.

Sorry, my instructions were incomplete... I meant to say

	... run `mdb --tty /dev/whatever ./myprog < foo'.

Note that the I/O for *mdb* will go to /dev/whatever,
while the program's I/O goes to the usual streams,
which you can redirect in the usual way.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list