--- ./gdb/symtab.c_orig	2017-01-21 07:48:42 -0600
+++ ./gdb/symtab.c	2017-05-22 06:42:46 -0500
@@ -2773,6 +2773,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)
