🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.2bsd
Article #227

Re: Problems with ps and adb (found the cause)

#227
From: Johan Wide'n
Date: Sat, 18 May 1985 03:44
34 lines
1939 bytes
>I have recently started to run 2.9BSD on a PDP-11/45. Everything seems to
>work all right except for ps and adb. I seems as if ps and the kernel have
>different ideas on how the user structure looks, or as if the user structure
>does not reside on a 64 byte boundary. Adb and the kernel do not agree on
>where the registers reside, adb places the contents of 'sp' in 'r1' and so
>on.

I found the cause of these problems. It turned out that
	/usr/include/whoami.h
was out of date (it was the original file from the boot-tape).
Doing
	cp /usr/sys/MYMACHINE/whoami.h /usr/include
and then recompiling adb and ps made the problems go away. As some of the
responders pointed out:

	Make sure that
		/usr/sys/MYMACHINE/whoami.h
	is identical to
		/usr/include/whoami.h

	and that
		/usr/sys/MYMACHINE/localopts.h
	is identical to
		/usr/include/sys/localopts.h

My thanks to all who responded.
BTW: We previously run a more or less vanilla v7 on this machine. 2.9BSD
makes quite a difference. My compliments to Berkeley for producing this
marvelous piece of software. My only gripe so far is that identifiers
in C are still only significant in the first 7 characters. On the other
hand: you get job control and UCB_SCRIPT and symbolic links and overlays
and ... Hot dog!

mcvax!enea!ttds!johanw                  Johan Widen
Technical Details
Message-ID: <929@ttds.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!ttds!johanw

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site ttds.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!ttds!johanw
From: johanw@ttds.UUCP (Johan Wide'n)
Newsgroups: net.bugs.2bsd
Subject: Re: Problems with ps and adb (found the cause)
Message-ID: <929@ttds.UUCP>
Date: Fri, 17-May-85 23:44:18 EDT
Article-I.D.: ttds.929
Posted: Fri May 17 23:44:18 1985
Date-Received: Thu, 16-May-85 03:28:54 EDT
Reply-To: johanw@ttds.UUCP (Johan Wide'n)
Organization: The Royal Inst. of Techn., Stockholm
Lines: 34