🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #227

bug in "info break", with a fix

#227
From: Eirik Fuller
Date: Fri, 04 Aug 1989 17:14
28 lines
1149 bytes
The enclosed patch eliminates a gdb segfault.  The segfault occurred
during "info break" with a breakpoint whose condition is "this == 0".

*** ../gdb-3.2/expprint.c	Fri Jul  7 14:22:13 1989
--- expprint.c	Fri Aug  4 10:06:49 1989
***************
*** 276,282
  	    break;
  	  }
  
!     default:
        for (tem = 0; tem < sizeof op_print_tab / sizeof op_print_tab[0]; tem++)
  	if (op_print_tab[tem].opcode == opcode)
  	  {

--- 276,287 -----
  	    break;
  	  }
  
!     case OP_THIS:
!       ++(*pos);
!       fprintf (stream, "this");
!       return;
! 
!    default:
        for (tem = 0; tem < sizeof op_print_tab / sizeof op_print_tab[0]; tem++)
  	if (op_print_tab[tem].opcode == opcode)
  	  {
Technical Details
Message-ID: <8908041714.AA04002@elf.LABS.TEK.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!gatech!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!mailrus!iuvax!purdue!gatech!tut.cis.ohio-state.edu!labs.labs.tek.com!eirik
From: eirik@labs.labs.tek.com (Eirik Fuller)
Newsgroups: gnu.gdb.bug
Subject: bug in "info break", with a fix
Message-ID: <8908041714.AA04002@elf.LABS.TEK.COM>
Date: 4 Aug 89 17:14:39 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 28