From owner-freebsd-questions Thu Jan 28 12:55:17 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13695 for freebsd-questions-outgoing; Thu, 28 Jan 1999 12:55:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (post-11.mail.demon.net [194.217.242.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13690 for ; Thu, 28 Jan 1999 12:55:15 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.10 #2) id 105yT2-0007AD-00; Thu, 28 Jan 1999 20:55:12 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id UAA02668; Thu, 28 Jan 1999 20:54:42 GMT Received: from uk.radan.com (rasnt-1) by beavis.uk.radan.com (4.1/SMI-4.1) id AA11074; Thu, 28 Jan 99 20:54:38 GMT Message-Id: <36B0CE0D.FB632D16@uk.radan.com> Date: Thu, 28 Jan 1999 20:52:29 +0000 From: Mark Ovens X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: cjclark@home.com Cc: questions@FreeBSD.ORG Subject: Re: [2nd attempt] Basic help with gdb References: <199901281625.LAA20121@cc942873-a.ewndsr1.nj.home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Crist J. Clark" wrote: > > Mark Ovens wrote, > > I didn't get any response the first time I asked this, so I'll try > > again. > > > > I'm trying to learn how to use gdb and can't seem to get the > > ``-tty='' option to work. > > I do not have a fix, but rather just gave this a shot myself. Here's > my experience. > Doh!. I've sorted it. I was trying to run ppp in the debugger to try and learn what caused the messages in it's log. Turns out there's a workround in it for a bug in the tty driver, it was this that was causing the message!.... close(STDIN_FILENO); if (open(_PATH_TTY, O_RDONLY) != STDIN_FILENO) { fprintf(stderr, "Cannot open %s for input !\n", _PATH_TTY); return 2; I've tried several other progs and it works fine (ppp also works but you have to run it the same window as the debugger - I wanted to separate the output from ppp and gdb) Thanks for your help. -- Trust the computer industry to shorten Year 2000 to Y2K. It was this thinking that caused the problem in the first place. FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message