--- ./gdb/symtab.c_orig	2016-04-01 10:22:39.000000000 -0500
+++ ./gdb/symtab.c	2016-04-01 10:27:46.000000000 -0500
@@ -2091,6 +2091,10 @@
 
   if (!objfile->sf)
     return NULL;
+  /* On aix when trying to look for binary_function gdb hangs in some cases.
+     This is a temporary fix to avoid the hang issues */
+  if (!strcmp(name, "binary_function<int, int, bool>"))
+    return NULL;
   cust = objfile->sf->qf->lookup_symbol (objfile, block_index, name,
 					 STRUCT_DOMAIN);
   if (cust == NULL)
