[RFA] Crasher bug in infptrace.c
Eli Zaretskii
eliz@is.elta.co.il
Sun Dec 30 22:26:00 GMT 2001
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.)
More information about the Gdb-patches
mailing list