Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ora!bloom-beacon!dont-send-mail-to-path-lines From: mikeo@sae.UUCP (Michael Ovington) Newsgroups: comp.windows.x Subject: Re: How do you use an Xterm with a debugger Message-ID: <9103141405.AA05988@sae.sae.com> Date: 14 Mar 91 14:05:17 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 31 In article <1991Mar13.220110.21768@motcad.portal.com> jtc@motcad.portal.com (J.T. Conklin) writes: >In article <1991Mar13.011536.17184@motcad.portal.com> jtc@motcad.portal.com (J.T. Conklin) writes: >>I would like to be able to open an Xterm so I can redirect terminal output >>to it from within gdb. This would allow me to debug tty based programs >>from my workstation without me having to connect an ascii terminal to a >>serial port. Can this be done? > >Sorry to followup my own posting, but my query was missing the fact that I >also need to redirect terminal _Input_ from the "debugging window" The >problem I am having stems from the fact that the shell in the xterm competes >with my program for terminal input. > > --jtc > >-- >J.T. Conklin jtc@motcad.portal.com, ...!portal!motcad!jtc In the xterm that actually runs the aplication, do a sleep 100000 on the command line to stop it from processing input. Then in your debugging window run you application and redirect input from the other xterm and ouput to it. On a sun running dbx the command would look something like: (dbx) run /dev/ttyp7 different debuggers will certainly have different syntax, but should support something like this. ________________________________________________________________________________ Michael S. Ovington Software A&E (703) 276-7910 1600 Wilson Blvd, Suite 500 uunet!sae!mikeo Arlington, VA 22209 mikeo@sae.com ________________________________________________________________________________