aboutsummaryrefslogtreecommitdiff
path: root/devel/gdb66/files
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2009-09-10 14:39:30 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2009-09-10 14:39:30 +0000
commit8b52215ca6a39469eb2ea975a12376831f9f168a (patch)
treea01290b6e006103467a2c25f5d0b81eb4ee73af8 /devel/gdb66/files
parent497fcb396190e3b89a3f2b848931a7b144051f0c (diff)
downloadports-8b52215ca6a39469eb2ea975a12376831f9f168a.tar.gz
ports-8b52215ca6a39469eb2ea975a12376831f9f168a.zip
Unbreak this for amd64. I don't know if this is the correct fix,
but it seems to work.
Notes
Notes: svn path=/head/; revision=241161
Diffstat (limited to 'devel/gdb66/files')
-rw-r--r--devel/gdb66/files/patch-gdb-amd64fbsd-nat.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/gdb66/files/patch-gdb-amd64fbsd-nat.c b/devel/gdb66/files/patch-gdb-amd64fbsd-nat.c
new file mode 100644
index 000000000000..0abe97392477
--- /dev/null
+++ b/devel/gdb66/files/patch-gdb-amd64fbsd-nat.c
@@ -0,0 +1,15 @@
+--- gdb/amd64fbsd-nat.c.orig 2005-12-17 17:33:59.000000000 -0500
++++ gdb/amd64fbsd-nat.c 2009-09-10 02:29:33.000000000 -0400
+@@ -125,10 +125,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 defined(__FreeBSD_version) && __FreeBSD_version < 800000
+ 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;
+ }