🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

adb trace fix

#330
From: Vic Abell
Date: Tue, 23 Sep 1986 15:45
20 lines
1179 bytes
If you are running a 2.9BSD kernel with networking, you may have noticed
that adb won't give a call trace ($c or $C).  This is a result of adb's
inability to deal with a USIZE > 16.  The following change to setup.c in
/usr/src/bin/adb will correct the problem.

< current -- setup.c -- modified >

242c242,243
< 			  if ((ar0>(POS *)0140000) & (ar0<(POS *)0142000)
---
> 			  if ((ar0>(POS *)0140000)
> 			      && (ar0<(POS *)(0142000+ctob(USIZE)))
244c245
< 				uar0 = ar0 - 0140000 + (unsigned)corhdr;
---
> 				uar0=(POS *)&corhdr[(int)(ar0-(POS *)0140000)];

Vic Abell, Purdue University Computing Center
	   ...!pur-ee!j.cc.purdue.edu!abe
	   abe@j.cc.purdue.edu
Technical Details
Message-ID: <2120@j.cc.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ihnp4!inuxc!pur-ee!j.cc.purdue.edu!abe

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ihnp4!inuxc!pur-ee!j.cc.purdue.edu!abe
From: abe@j.cc.purdue.edu (Vic Abell)
Newsgroups: net.bugs.2bsd
Subject: adb trace fix
Message-ID: <2120@j.cc.purdue.edu>
Date: Tue, 23-Sep-86 11:45:37 EDT
Article-I.D.: j.2120
Posted: Tue Sep 23 11:45:37 1986
Date-Received: Wed, 24-Sep-86 00:59:34 EDT
Organization: Purdue University Computing Center
Lines: 20
Keywords: adb, USIZE