Unbreak this for amd64. I don't know if this is the correct fix,
but it seems to work.
This commit is contained in:
parent
497fcb3961
commit
8b52215ca6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241161
4 changed files with 30 additions and 10 deletions
|
@ -71,11 +71,6 @@ PLIST_SUB+= INSIGHT='@comment '
|
|||
|
||||
.if ${ARCH} == "amd64"
|
||||
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
||||
|
||||
.if ${OSVERSION} >= 800000
|
||||
BROKEN= does not compile
|
||||
.endif
|
||||
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
|
15
devel/gdb6/files/patch-gdb-amd64fbsd-nat.c
Normal file
15
devel/gdb6/files/patch-gdb-amd64fbsd-nat.c
Normal file
|
@ -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;
|
||||
}
|
|
@ -71,11 +71,6 @@ PLIST_SUB+= INSIGHT='@comment '
|
|||
|
||||
.if ${ARCH} == "amd64"
|
||||
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
||||
|
||||
.if ${OSVERSION} >= 800000
|
||||
BROKEN= does not compile
|
||||
.endif
|
||||
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
|
15
devel/gdb66/files/patch-gdb-amd64fbsd-nat.c
Normal file
15
devel/gdb66/files/patch-gdb-amd64fbsd-nat.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue