summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb
diff options
context:
space:
mode:
authorSteffen Sledz <sledz@dresearch-fe.de>2013-11-28 15:09:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 23:10:56 +0000
commit2b38832f976cbd169d5ac6e2a5fd3ab38d614fc7 (patch)
tree99fab98794539eeceae87129fc98edc6d3d245b6 /meta/recipes-devtools/gdb/gdb
parent6b124ff57eda9af541e61f5e0e8a895de1e58e3a (diff)
downloadast2050-yocto-poky-2b38832f976cbd169d5ac6e2a5fd3ab38d614fc7.zip
ast2050-yocto-poky-2b38832f976cbd169d5ac6e2a5fd3ab38d614fc7.tar.gz
gdb-7.6.1: fix cygwin check in configure script
This is a fix which avoids false positives if the search pattern "lose" is found in path descriptions in comments generated by the preprocessor we hit in our development environment. [gdb Bug #16152] -- https://sourceware.org/bugzilla/show_bug.cgi?id=16152 Upstream-Status: Accepted (From OE-Core rev: 62849843a4a83b10316bc6cb1e4b3f0622391dea) Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb/gdb-fix-cygwin-check-in-configure-script.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/gdb-fix-cygwin-check-in-configure-script.patch b/meta/recipes-devtools/gdb/gdb/gdb-fix-cygwin-check-in-configure-script.patch
new file mode 100644
index 0000000..4e4647b
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/gdb-fix-cygwin-check-in-configure-script.patch
@@ -0,0 +1,38 @@
+Avoid false positives if the search pattern "lose" is found in path
+descriptions in comments generated by the preprocessor.
+
+See <https://sourceware.org/bugzilla/show_bug.cgi?id=16152>.
+---
+ gdb/configure | 2 +-
+ gdb/configure.ac | 2 +-
+ 3 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/gdb/configure b/gdb/configure
+index 5514b2f..b38e183 100755
+--- a/gdb/configure
++++ b/gdb/configure
+@@ -12446,7 +12446,7 @@ lose
+ #endif
+ _ACEOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+- $EGREP "lose" >/dev/null 2>&1; then :
++ $EGREP "^lose$" >/dev/null 2>&1; then :
+ gdb_cv_os_cygwin=yes
+ else
+ gdb_cv_os_cygwin=no
+diff --git a/gdb/configure.ac b/gdb/configure.ac
+index 9b73887..2947293 100644
+--- a/gdb/configure.ac
++++ b/gdb/configure.ac
+@@ -1877,7 +1877,7 @@ AC_SUBST(WERROR_CFLAGS)
+
+ # In the Cygwin environment, we need some additional flags.
+ AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin,
+-[AC_EGREP_CPP(lose, [
++[AC_EGREP_CPP(^lose$, [
+ #if defined (__CYGWIN__) || defined (__CYGWIN32__)
+ lose
+ #endif],[gdb_cv_os_cygwin=yes],[gdb_cv_os_cygwin=no])])
+--
+1.8.4
+
OpenPOWER on IntegriCloud