Re: [patch] Forbid run with a core file loaded

Joel Brobecker
2010-05-21T15:04:38Z

> > there is already a protection against loading a core file when a program is
> > running.
>
> That makes sense. But what you are suggesting doesn't.
>
> I often start gdb and load a core file to investigate a problem. Then
> I set a breakpoint at some point before the crash and run the program
> again. This used to work just fine.

There might have been a poor choice of words in the subject - Based on
the patch, Jan is not proposing to actually forbid that operation.
Rather, he's suggesting we add a confirmation query before actually
restarting the inferior. Would you agree to such a change?

--
Joel