Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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