Permalink
Browse files

add patch that fixes compilation of gdb when stpcpy is defined

  • Loading branch information...
1 parent 84eb794 commit db1704f1dc9b0b25ab81137096b10a0f89c6bc23 @SamRH SamRH committed Oct 28, 2011
Showing with 17 additions and 0 deletions.
  1. +16 −0 patches/gdb-6.8-fix-stpcpy.patch
  2. +1 −0 scripts/007-gdb-6.8.sh
@@ -0,0 +1,16 @@
+diff -r bd1c80d7592b -r 9c3b8e40d77c patches/gdb/6.8/150-handle-stpcpy-define.patch
+--- /dev/null Thu Jan 01 00:00:00 1970 +0000
++++ b/patches/gdb/6.8/150-handle-stpcpy-define.patch Mon Aug 22 09:35:29 2011 +0200
+@@ -0,0 +1,12 @@
++diff -ru gdb-6.8.orig/bfd/sysdep.h gdb-6.8/bfd/sysdep.h
++--- gdb-6.8.orig/bfd/sysdep.h 2007-07-03 16:26:42.000000000 +0200
+++++ gdb-6.8/bfd/sysdep.h 2011-08-21 13:33:47.000000000 +0200
++@@ -131,7 +131,7 @@
++ extern PTR realloc ();
++ #endif
++
++-#if !HAVE_DECL_STPCPY
+++#if !HAVE_DECL_STPCPY && !defined(stpcpy)
++ extern char *stpcpy (char *__dest, const char *__src);
++ #endif
++
View
@@ -13,6 +13,7 @@
## Enter the source directory and patch the source code.
cd gdb-6.8
+ patch -p1 < ../../patches/gdb-6.8-fix-stpcpy.patch
patch -p1 < ../../patches/gdb-6.8-PSP.patch
## Create and enter the build directory.

0 comments on commit db1704f

Please sign in to comment.