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
              [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to