Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 13:50:48 +0100 (CET)
From:      Harti Brandt <brandt@fokus.gmd.de>
To:        Poul-Henning Kamp <phk@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG, <jhb@FreeBSD.ORG>
Subject:   Re: buildworld broken on globaldata.h
Message-ID:  <20011212134719.Y36662-100000@beagle.fokus.gmd.de>
In-Reply-To: <53884.1008157385@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Dec 2001, Poul-Henning Kamp wrote:

PK>
PK>My buildworld breaks:
PK>
PK>[...]
PK>/flat/src/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c:52: machine/globaldata.h: No
PK>such file or directory
PK>
PK>Any workarounds/fixes ?

This was broken by jhb's large commit yesterday to break globaldata in MI
and MD parts. The following patch to
gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c let's you compile gdb. Don't know
whether it works. Maybe there are other problems further down in the
buildworld (mine is still working)

harti

Index: kvm-fbsd.c
===================================================================
RCS file: /usr/ncvs/src/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c,v
retrieving revision 1.32
diff -r1.32 kvm-fbsd.c
52c52,53
< #include <machine/globaldata.h>
---
> #include <sys/pcpu.h>
> #include <machine/pcpu.h>
121c122
< 	offsetof(struct globaldata, gd_ ## name)
---
> 	offsetof(struct pcpu, pc_ ## name)
788,789c789,790
<   struct globaldata lgd;
<   struct globaldata *gd;
---
>   struct pcpu lgd;
>   struct pcpu *gd;
794c795
<   for (; gd != NULL; gd = SLIST_NEXT (&lgd, gd_allcpu))
---
>   for (; gd != NULL; gd = SLIST_NEXT (&lgd, pc_allcpu))
797c798
<       if (lgd.gd_cpuid == cpuid)
---
>       if (lgd.pc_cpuid == cpuid)

-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              brandt@fokus.fhg.de


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?20011212134719.Y36662-100000>