I've wanted what Cagney proposed here before: http://sourceware.org/ml/gdb/2002-08/msg00166.html http://sourceware.org/bugzilla/show_bug.cgi?id=7580 In a nutshell, these new commands: maint set internal-error quit [on|off|auto] maint set internal-error corefile [on|off|auto] The reaction seemed to be good at the time. I've wanted it for slightly different reasons for this, though. I find that running the testsuite and collecting a bunch of core dumps of GDB (using sysctl kernel.core_pattern), instead of looking at internal_errors in log files helps find issues faster when I'm developing new features, or reworking some all-affecting component. So, here's a patch that adds those new commands so I don't have to keep patching GDB whenever I want this behaviour. :-) Comments? Eli, is the documentation proper? -- Pedro Alves