From owner-freebsd-current Mon Feb 11 19: 4:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id 1FAB037B494 for ; Mon, 11 Feb 2002 18:17:09 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id 7A817231E7 for ; Mon, 11 Feb 2002 21:16:50 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id 87A489F2AA; Mon, 11 Feb 2002 21:11:55 -0500 (EST) Date: Thu, 7 Feb 2002 19:14:15 -0800 (PST) From: Julian Elischer To: current@freebsd.org Subject: Re: possible world breakage warning.. Message-Id: <20020212021155.87A489F2AA@okeeffe.bestweb.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 7 Feb 2002, Julian Elischer wrote: > > there may be greakage in gdb due th the commit today.. > I'm waiting for my buildworld to get sround to it so I can test my fix.. > > julian the fix I am looking at testing is: Index: i386/kvm-fbsd.c =================================================================== RCS file: /usr/home/cvs/src/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c,v retrieving revision 1.33 diff -u -r1.33 kvm-fbsd.c --- i386/kvm-fbsd.c 2001/12/12 21:15:30 1.33 +++ i386/kvm-fbsd.c 2002/02/08 02:36:43 @@ -387,9 +387,12 @@ int regno; { struct pcb *pcbaddr; + struct thread *td; /* find the pcb for the current process */ - if (cur_proc == NULL || kvread (&cur_proc->p_thread.td_pcb, &pcbaddr)) /* XXXKSE */ + if (cur_proc == NULL || + kvread (&TAILQ_FIRST(&cur_proc->p_threads), &td) || /* XXXKSE */ + kvread (&td->td_pcb, &pcbaddr)) /* XXXKSE */ error ("cannot read u area ptr for proc at %#x", cur_proc); if (read_pcb (core_kd, (CORE_ADDR)pcbaddr) < 0) error ("cannot read pcb at %#x", pcbaddr); in the gdb sources but haven't managed to test it yet. due to other breakages.. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message