🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #201

dbxread.c needs to be consistently #ifdef'ed

#201
From: Don Bennett 433-3311, 408
Date: Tue, 18 Jul 1989 01:18
59 lines
2171 bytes
dbxread.c is #ifdef'ed for BROKEN_LARGE_ALLOCA in one place,
there are two other places that require similar treatment.

   Don Bennett           (408)433-3311
   dpb@frame.com
   Frame Technology


*** odbxread.c	Mon Jul 17 17:48:55 1989
--- dbxread.c	Mon Jul 17 17:54:52 1989
***************
*** 2714,2720 ****
        lseek (desc, STRING_TABLE_OFFSET, L_SET);
        READ_STRING_TABLE_SIZE (stsize);
        if (stsize >= 0 && stsize < statbuf.st_size)
! 	stringtab = (char *) alloca (stsize);
        else
  	stringtab = NULL;
        if (stringtab == NULL)
--- 2714,2727 ----
        lseek (desc, STRING_TABLE_OFFSET, L_SET);
        READ_STRING_TABLE_SIZE (stsize);
        if (stsize >= 0 && stsize < statbuf.st_size)
! 	{  
! #ifdef BROKEN_LARGE_ALLOCA
!           stringtab = (char *) xmalloc (stsize);
!           make_cleanup (free, stringtab);
! #else
! 	  stringtab = (char *) alloca (stsize);
! #endif
!         }
        else
  	stringtab = NULL;
        if (stringtab == NULL)
***************
*** 3448,3454 ****
    stat (name, &statbuf);
    READ_STRING_TABLE_SIZE (buffer);
    if (buffer >= 0 && buffer < statbuf.st_size)
!     stringtab = (char *) alloca (buffer);
    else
      stringtab = NULL;
    if (stringtab == NULL)
--- 3455,3468 ----
    stat (name, &statbuf);
    READ_STRING_TABLE_SIZE (buffer);
    if (buffer >= 0 && buffer < statbuf.st_size)
!     {
! #ifdef BROKEN_LARGE_ALLOCA
!       stringtab = (char *) xmalloc (buffer);
!       make_cleanup (free, stringtab);
! #else
!       stringtab = (char *) alloca (buffer);
! #endif
!     }
    else
      stringtab = NULL;
    if (stringtab == NULL)
Technical Details
Message-ID: <8907180118.AA05533@viking.>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ai.mit.edu!frame!viking!dpb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ai.mit.edu!frame!viking!dpb
From: frame!viking!dpb@ai.mit.edu (Don Bennett           433-3311, 408)
Newsgroups: gnu.gdb.bug
Subject: dbxread.c needs to be consistently #ifdef'ed
Message-ID: <8907180118.AA05533@viking.>
Date: 18 Jul 89 01:18:45 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: dpb@frame.com
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 59