Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 20:52:29 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        cjclark@home.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: [2nd attempt] Basic help with gdb
Message-ID:  <36B0CE0D.FB632D16@uk.radan.com>
References:  <199901281625.LAA20121@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"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=<device>'' 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36B0CE0D.FB632D16>