Subject: bin/1754: pstat -t doesn't work: cannot read tty pointers
To: None <gnats-bugs@gnats.netbsd.org>
From: enami tsugutomo <enami@sys.ptg.sony.co.jp>
List: netbsd-bugs
Date: 11/12/1995 13:06:12
>Number:         1754
>Category:       bin
>Synopsis:       pstat -t doesn't work: cannot read tty pointers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 12 03:35:17 1995
>Last-Modified:
>Originator:     enami tsugutomo
>Organization:
>Release:        NetBSD-current around 95/Nov/05
>Environment:
	
System: NetBSD pavlov 1.1_ALPHA NetBSD 1.1_ALPHA (PAVLOV) #9: Fri Nov 10 22:37:03 JST 1995 root@pavlov:/usr/src/sys/arch/i386/compile/PAVLOV i386


>Description:
	pstat -t gives an error like this:

1 pc line
pstat: cannot read tty pointers: kvm_read: Bad address
  LINE  RAW  CAN  OUT  HWT LWT    COL STATE    SESS  PGID DISC

>How-To-Repeat:
	just type in.
>Fix:
	pstat can't take the address of struct tty.  There needs the
	way to get offset of struct tty in the each xxx_softc.

>Audit-Trail:
>Unformatted: