From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14907 invoked by alias); 31 Dec 2001 06:26:30 -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 14841 invoked from network); 31 Dec 2001 06:26:28 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 31 Dec 2001 06:26:28 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA15165; Mon, 31 Dec 2001 08:25:46 +0200 (IST) Date: Sun, 30 Dec 2001 22:26:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Michael Snyder cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Crasher bug in infptrace.c In-Reply-To: <200112310020.fBV0Kr119534@reddwarf.cygnus.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2001-12/txt/msg00615.txt.bz2 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. (FWIW, 1MB is too large for DJGPP, whose runtime stack defaults to 512KB. `getrlimit' is supported, so it will tell.)