[comp.unix.ultrix] using adb on /vmunix

weaverj@eecae.ee.msu.edu (Jeff Weaver) (03/22/89)

Reply-to: weaverj@eecae.ee.msu.edu (Jeff Weaver)



I am using adb on a Ultrix2.2 kernel on a VAX 8600.  I'm trying to find
some data in the pty drivers (the clists to be exact) and I'm having
a problem getting through to the proper memory location.  The following
works on a Sun (3.5), but when I try to use adb on the VAX it doesn't
respond.

adb -k /vmunix /dev/mem
(I get the proper page translation info)
u$<u
(get the user area)  At this point I use u.u_ttyp (struct tty *)

However when I use "clist" or "tty" to try to track down the clist it
gives me garbage.  Do I have to set maps explicitly on the VAX and not
the Suns or is it something really stupid that I'm overlooking.  I've
racked my brains for about a week now and am getting nowhere, well at
least the sun one works -- I can see what I'm typing :-)

Jeff

weaverj@eecae.ee.msu.edu
...uunet!frith!weaverj

grr@cbmvax.UUCP (George Robbins) (03/29/89)

In article <88364@felix.UUCP> weaverj@eecae.ee.msu.edu (Jeff Weaver) writes:
> Reply-to: weaverj@eecae.ee.msu.edu (Jeff Weaver)
> 
> 
> I am using adb on a Ultrix2.2 kernel on a VAX 8600....
> 
> However when I use "clist" or "tty" to try to track down the clist it
> gives me garbage.  Do I have to set maps explicitly on the VAX and not
> the Suns or is it something really stupid that I'm overlooking.

If you're using the macros in /usr/lib/adb, I'd check them to make sure
that it still corresponds to the .h file.  I halfway suspect that the
macros may not be up to date with changes made to Ultrix, but have only
a vague memory finding something wrong there a while back.

-- 
George Robbins - now working for,	uucp: {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing	arpa: cbmvax!grr@uunet.uu.net
Commodore, Engineering Department	fone: 215-431-9255 (only by moonlite)