Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix building gdb-7.0 on x86_64-*-freebsd
@ 2009-10-12 21:55 Steve Kargl
       [not found] ` <20091014050550.GV5272@adacore.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Kargl @ 2009-10-12 21:55 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

The attach patch allows gdb-7.0 (and 6.8) to build 
on x86_64-*-freebsd.  Revision 189903 of FreeBSD's
sys/amd64/include/pcb.h removed the pcb_fs, pcb_gs,
pcb_ds, and pcb_es members of the structure.

-- 
Steve

[-- Attachment #2: a.diff --]
[-- Type: text/x-diff, Size: 746 bytes --]

--- amd64fbsd-nat.c.orig	2009-10-12 14:38:56.000000000 -0700
+++ amd64fbsd-nat.c	2009-10-12 14:40:13.000000000 -0700
@@ -95,6 +95,7 @@
 
 #include <sys/types.h>
 #include <machine/pcb.h>
+#include <osreldate.h>
 
 #include "bsd-kvm.h"
 
@@ -123,10 +124,12 @@
   regcache_raw_supply (regcache, 13, &pcb->pcb_r13);
   regcache_raw_supply (regcache, 14, &pcb->pcb_r14);
   regcache_raw_supply (regcache, 15, &pcb->pcb_r15);
+#if (__FreeBSD_version <  900000)
   regcache_raw_supply (regcache, AMD64_DS_REGNUM, &pcb->pcb_ds);
   regcache_raw_supply (regcache, AMD64_ES_REGNUM, &pcb->pcb_es);
   regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs);
   regcache_raw_supply (regcache, AMD64_GS_REGNUM, &pcb->pcb_gs);
+#endif
 
   return 1;
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-19 20:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12 21:55 [PATCH] Fix building gdb-7.0 on x86_64-*-freebsd Steve Kargl
     [not found] ` <20091014050550.GV5272@adacore.com>
     [not found]   ` <1530bbfee75f68f9c32262460f1ec7f9.squirrel@webmail.xs4all.nl>
     [not found]     ` <20091015021317.GD5288@adacore.com>
     [not found]       ` <20091015230013.GA49371@troutmask.apl.washington.edu>
2009-10-16 23:22         ` Joel Brobecker
2009-10-17  0:17           ` Steve Kargl
2009-10-17  4:19             ` Joel Brobecker
2009-10-17  5:06             ` Sérgio Durigan Júnior
2009-10-19 19:53               ` Joel Brobecker
2009-10-19 20:34                 ` Steve Kargl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox