Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2002 19:14:15 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        current@freebsd.org
Subject:   Re: possible world breakage warning..
Message-ID:  <20020212021155.87A489F2AA@okeeffe.bestweb.net>

next in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212021155.87A489F2AA>