This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: fatal() -> internal_error() jumbo patch
"J.T. Conklin" wrote:
> if (query ("dump core? ")) {
> if (fork() == 0) {
> abort();
> }
> }
> if (query ("exit? ")) {
> _exit(1);
> }
>
> dejavu = 0;
> return_to_top_level (RETURN_ERROR);
> }
Ah, of course, @!$^(*&!($ fork() :-) Thanks, I'll add this.
> I'm unsure about what to do on non-UNIX systems that can't force a
> core dump in this way. Perhaps your original code should be used.
Cygwin has fork() so ...
thanks,
Andrew