From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21281 invoked by alias); 14 May 2003 22:58:07 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21258 invoked from network); 14 May 2003 22:58:06 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 14 May 2003 22:58:06 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19G5Cg-0001Ks-00; Wed, 14 May 2003 17:58:30 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19G5CC-0007CC-00; Wed, 14 May 2003 18:58:00 -0400 Date: Wed, 14 May 2003 22:58:00 -0000 From: Daniel Jacobowitz To: Mark Mitchell Cc: gdb@sources.redhat.com Subject: Re: MAX_SECTIONS is way too small Message-ID: <20030514225759.GA20283@nevyn.them.org> Mail-Followup-To: Mark Mitchell , gdb@sources.redhat.com References: <200305142246.h4EMkLJw002046@doubledemon.codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305142246.h4EMkLJw002046@doubledemon.codesourcery.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00230.txt.bz2 On Wed, May 14, 2003 at 03:46:21PM -0700, Mark Mitchell wrote: > > Presently, MAX_SECTIONS and SECT_OFF_MAX are set to 64. > > That's far too small when using G++, which can generate a linkonce > section per template instantiation, yielding thousands of sections in > the output file. > > GDB does not even bother to check SECT_OFF_MAX; it just goes looking > at memory past the end of objfile->section_offsets rather happily. > > This problem is the cause of GNATS PR 1171. > > It can be easily fixed by bumping MAX_SECTIONS and SECT_OFF_MAX to > larger values; to get that test to work you need to make them about > 6000. > > But, this should not be a hard-wired constant. > > Before, I go fiddling around trying to make these things dynamic, does > anyone have any comments they'd like to make? :-) How's "yes please" sound? This has been on my TODO for I have no idea how long now. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer