[gnu.gdb.bug] gdb 3.2 null pointer dereference

eirik@labs.labs.tek.com (Eirik Fuller) (09/14/89)

When stepping through a stripped binary (don't ask ...) I tripped over
a null pointer dereference in wait_for_inferior().  The enclosed patch
cured the symtom if not the problem.

*** ../gdb-3.2/infrun.c	Wed Jul  5 12:46:07 1989
--- infrun.c	Thu Sep 14 00:17:02 1989
***************
*** 813,819
  	    }
  
  	  /* Did we just take a signal?  */
! 	  if (!strcmp ("_sigtramp", stop_func_name)
  	      && strcmp ("_sigtramp", prev_func_name))
  	    {
  	      /* We've just taken a signal; go until we are back to

--- 813,819 -----
  	    }
  
  	  /* Did we just take a signal?  */
! 	  if (stop_func_name && !strcmp ("_sigtramp", stop_func_name)
  	      && strcmp ("_sigtramp", prev_func_name))
  	    {
  	      /* We've just taken a signal; go until we are back to

Eirik