CSS/Harvard 2.9BSD bug report

Keith Bostic keith at seismo.CSS.GOV
Tue Feb 4 03:24:53 AEST 1986


Subject: adb is broken
Index:	bin/adb 2.9BSD

Description:
	Adb only works on the kernel.
Repeat-By:
	Try to get an adb stack trace from any program.
Fix:
	Apply the following fixes, provided by Peter Staubach at
	the University of Oklahoma.

defs.h.wrong ----- defs.h.right
112c112
< #define UAR0    (&corhdr[509]) /* default address of r0 (u.u_ar0) */
---
> #define UAR0	(&corhdr[ctob(USIZE)/sizeof(POS) - 3])

pcs.c.wrong ----- pcs.c.right
22c22
< POS		corhdr[512];
---
> POS		corhdr[ctob(USIZE)/sizeof(POS)];
136d135
< 
setup.c.wrong ----- setup.c.right
39c38
< POS             corhdr[ctob(USIZE)];
---
> POS		corhdr[ctob(USIZE)/sizeof(POS)];	/* was just 512 */
179c178
< 			datmap.e2 = 0140000L + ctob(USIZE);
---
> 			datmap.e2 = 0140000L + stksiz;
242c241
< 			  if ((ar0>(POS *)0140000) & (ar0<(POS *)0142000)
---
> 			  if ((ar0>(POS *)0140000) & (ar0<(POS *)(0140000+ctob(USIZE)))



More information about the Comp.bugs.2bsd mailing list