From owner-freebsd-current Thu Feb 7 19:20:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 629E937B440 for ; Thu, 7 Feb 2002 19:20:11 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020208032010.TLCK2951.rwcrmhc53.attbi.com@InterJet.elischer.org> for ; Fri, 8 Feb 2002 03:20:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id TAA99309 for ; Thu, 7 Feb 2002 19:14:16 -0800 (PST) Date: Thu, 7 Feb 2002 19:14:15 -0800 (PST) From: Julian Elischer To: current@freebsd.org Subject: Re: possible world breakage warning.. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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