Re: [patch] Do not disappoint on "Create a core file of GDB?"

Eli Zaretskii
2010-01-12T19:37:21Z

> From: Tristan Gingold <gingold@adacore.com>
> Date: Tue, 12 Jan 2010 09:45:29 +0100
> Cc: jan.kratochvil@redhat.com, gdb-patches@sourceware.org
>
>
> On Jan 11, 2010, at 8:15 PM, Eli Zaretskii wrote:
>
> >> From: Tristan Gingold <gingold@adacore.com>
> >> Date: Mon, 11 Jan 2010 17:07:30 +0100
> >> Cc: gdb-patches@sourceware.org
> >>
> >>
> >>> setrlimit is a POSIX function so I hope it does not need autoconf magic:
> >>> http://www.opengroup.org/onlinepubs/009695399/functions/setrlimit.html
> >>
> >> Sure, but windows is not POSIX compliant, so I think you can't avoid some autoconf stuff.
> >
> > Which "windows" do you have in mind? If it's Cygwin, I'd imagine it
> > does have setrlimit. If you are talking about native Windows, then it
> > cannot dump core, anyway, can it?
>
> Sure. But it doesn't have setrlimit/getrlimit.

But of course.

In case I wasn't clear, I was actually wondering how come we compile a
source file that's needed for reading and writing core files on a
system where core files aren't supported. We shouldn't compile it,
and this problem should not exist.