🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #256

gdb 3.2 null pointer dereference

#256
From: Eirik Fuller
Date: Thu, 14 Sep 1989 07:35
26 lines
1200 bytes
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
Technical Details
Message-ID: <8909140735.AA02027@elf.LABS.TEK.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!labs.labs.tek.com!eirik

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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