gdb-7.8p0 doesn't run because /usr/local/bin/gdb has a wrong "strcmp" instance,
jmp'ing itself, and makes the binary just spin.  I've not looked closer at
headers and defines, but at least this change makes gdb display prompt.

diff --git a/devel/gdb/patches/patch-libiberty_filename_cmp_c 
b/devel/gdb/patches/patch-libiberty_filename_cmp_c
new file mode 100644
index 0000000..3a0d92f
--- /dev/null
+++ b/devel/gdb/patches/patch-libiberty_filename_cmp_c
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- libiberty/filename_cmp.c.orig      Tue Nov 11 23:28:46 2014
++++ libiberty/filename_cmp.c   Tue Nov 11 23:26:23 2014
+@@ -27,6 +27,10 @@
+ #include "filenames.h"
+ #include "safe-ctype.h"
+ 
++#undef        filename_cmp
++#undef        FILENAME_CMP
++#undef        filename_ncmp
++
+ /*
+ 
+ @deftypefn Extension int filename_cmp (const char *@var{s1}, const char 
*@var{s2})

Reply via email to