From 86fb2cb5b780b898e40d943fa25f733e25fb3265 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Tue, 7 Oct 2014 10:25:42 +0000 Subject: - Fix a buffer overflow when copying a string - Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline location for the native amd64 ABI. This fixes unwinding over the signal frame after trampoline was moved to the shared page. (https://svnweb.freebsd.org/changeset/base/258663) - Remove some gcc specific warning flags PR: 194190 Submitted by: luca.pizzamiglio@gmail.com (maintainer) --- devel/gdb/files/patch-gdb-configure | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'devel/gdb/files/patch-gdb-configure') diff --git a/devel/gdb/files/patch-gdb-configure b/devel/gdb/files/patch-gdb-configure index 288eb57dad0b..3ec1b2dd381f 100644 --- a/devel/gdb/files/patch-gdb-configure +++ b/devel/gdb/files/patch-gdb-configure @@ -1,6 +1,6 @@ ---- gdb/configure.orig 2012-08-24 14:03:52.000000000 +0200 -+++ gdb/configure 2012-08-24 14:05:06.000000000 +0200 -@@ -10590,7 +10590,8 @@ +--- gdb/configure.orig 2014-07-29 14:37:42.000000000 +0200 ++++ gdb/configure 2014-10-01 14:21:14.902231511 +0200 +@@ -11485,7 +11485,8 @@ # See if supports the %fs and %gs i386 segment registers. # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. @@ -10,7 +10,7 @@ " if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then : -@@ -10600,7 +10601,8 @@ +@@ -11495,7 +11496,8 @@ fi @@ -20,3 +20,16 @@ " if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then : +@@ -13007,10 +13009,9 @@ + + build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ + -Wpointer-sign \ +--Wno-unused -Wunused-value -Wunused-function \ ++-Wno-unused -Wunused-value \ + -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \ +--Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \ +--Wold-style-declaration -Wold-style-definition" ++-Wdeclaration-after-statement -Wempty-body -Wold-style-definition" + + # Enable -Wno-format by default when using gcc on mingw since many + # GCC versions complain about %I64. -- cgit v1.2.3