adb trace fix
Vic Abell
abe at j.cc.purdue.edu
Wed Sep 24 01:45:37 AEST 1986
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 at j.cc.purdue.edu
More information about the Comp.bugs.2bsd
mailing list