Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!labs.labs.tek.com!eirik From: eirik@labs.labs.tek.com (Eirik Fuller) Newsgroups: gnu.gdb.bug Subject: gdb 3.2 null pointer dereference Message-ID: <8909140735.AA02027@elf.LABS.TEK.COM> Date: 14 Sep 89 07:35:10 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26 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