Date: Wed, 08 May 1996 03:51:22 +0800 From: Peter Wemm <peter@spinner.DIALix.COM> To: smp@freebsd.org Subject: aargh, I hate majordomo sometimes.. Message-ID: <199605071951.DAA01083@spinner.DIALix.COM>
next in thread | raw e-mail | index | archive | help
Forwarded Message: Return-Path: owner-smp@freefall.freebsd.org Received: from jhome.DIALix.COM (root@jhome.DIALix.COM [192.203.228.69]) by spinner.DIALix.COM (8.7.5/8.7.3) with ESMTP id DAA00983 for <peter@spinner.DIALix.COM>; Wed, 8 May 1996 03:46:04 +0800 (WST) Received: from x.physics.usyd.edu.au (x.physics.usyd.edu.au [129.78.129.25]) by jhome.DIALix.COM (8.7.5/8.7.3) with SMTP id DAA10214 for <peter@jhome.dialix.com>; Wed, 8 May 1996 03:46:01 +0800 (WST) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.4]) by x.physics.usyd.edu.au (8.6.8/8.6.5) with ESMTP id FAA07570 for <peter@jhome.dialix.com>; Wed, 8 May 1996 05:45:54 +1000 Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA28672 for owner-smp@FreeBSD.ORG; Tue, 7 May 1996 12:45:35 -0700 (PDT) Date: Tue, 7 May 1996 12:45:35 -0700 (PDT) Message-Id: <199605071945.MAA28672@freefall.freebsd.org> To: owner-smp@FreeBSD.ORG From: owner-smp@FreeBSD.ORG Subject: BOUNCE smp@FreeBSD.ORG: Admin request >From owner-freebsd-smp Tue May 7 12:45:33 1996 Received: from spinner.DIALix.COM (spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA28658 for <smp@freebsd.org>; Tue, 7 May 1996 12:45:25 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.7.5/8.7.3) with ESMTP id DAA00961 for <smp@freebsd.org>; Wed, 8 May 1996 03:45:14 +0800 (WST) Message-Id: <199605071945.DAA00961@spinner.DIALix.COM> To: smp@freebsd.org Date: Wed, 08 May 1996 03:45:14 +0800 From: Peter Wemm <peter@spinner.DIALix.COM> The following hacks are not correct (gdb doesn't know mutli cpu anyway :-) but will help examine static data and crashed kernels: =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/gdb/gdb/freebsd-nat.c,v retrieving revision 1.9 diff -u -r1.9 freebsd-nat.c --- freebsd-nat.c 1996/05/02 13:08:51 1.9 +++ freebsd-nat.c 1996/05/07 07:21:55 @@ -363,7 +363,7 @@ physrd(cfd, ksym_lookup("IdlePTD") - KERNOFF, (char*)&sbr, sizeof sbr); printf("IdlePTD %x\n", sbr); - curpcb = ksym_lookup("curpcb") - KERNOFF; + curpcb = ksym_lookup("SMPcurpcb") - KERNOFF; physrd(cfd, curpcb, (char*)&curpcb, sizeof curpcb); kstack = ksym_lookup("kstack"); =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/gdb/gdb/kcorelow.c,v retrieving revision 1.4 diff -u -r1.4 kcorelow.c --- kcorelow.c 1995/05/30 04:57:22 1.4 +++ kcorelow.c 1996/05/07 07:24:00 @@ -86,7 +86,7 @@ curProc() { struct proc *p; - CORE_ADDR addr = ksym_lookup("curproc"); + CORE_ADDR addr = ksym_lookup("SMPcurproc"); if (kvread(addr, &p)) error("cannot read proc pointer at %x\n", addr); Cheers, -Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605071951.DAA01083>