This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]