From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28479 invoked by alias); 31 Dec 2001 20:03:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28437 invoked from network); 31 Dec 2001 20:03:13 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 31 Dec 2001 20:03:13 -0000 Received: from telocity.telocity.com (taarna.cygnus.com [205.180.230.102]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id MAA27014; Mon, 31 Dec 2001 12:02:54 -0800 (PST) Message-ID: <3C30C36F.32D5@redhat.com> Date: Mon, 31 Dec 2001 12:03:00 -0000 From: Michael Snyder X-Mailer: Mozilla 3.04 (Win95; I) MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sources.redhat.com Subject: Re: [RFA] Crasher bug in infptrace.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00618.txt.bz2 Eli Zaretskii wrote: > > On Sun, 30 Dec 2001, Michael Snyder wrote: > > > + /* Set an upper limit on alloca. */ > > + #ifndef GDB_MAX_ALLOCA > > + #define GDB_MAX_ALLOCA 0x100000 > > + #endif > > Isn't it better to use `getrlimit' to find out the max stack size, than > to set up arbitrary limits (and proliferate system-specific definitions > of GDB_MAX_ALLOCA)? At least on systems where `getrlimit' is available, > I think we should use it. Good idea, but it will require additional work (such as using configure to determine whether getrlimit is supported). May I suggest that this patch be accepted until someone volunteers to do a better one? > (FWIW, 1MB is too large for DJGPP, whose runtime stack defaults to > 512KB. `getrlimit' is supported, so it will tell.) Does djgpp use infptrace?