winedbg: Don't start another instance of the debugger when it crashes.
This commit is contained in:
parent
f624d8f7b6
commit
052eb24b03
|
@ -603,6 +603,12 @@ void dbg_start_interactive(HANDLE hFile)
|
||||||
dbg_save_internal_vars();
|
dbg_save_internal_vars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static LONG CALLBACK top_filter( EXCEPTION_POINTERS *ptr )
|
||||||
|
{
|
||||||
|
dbg_printf( "winedbg: Internal crash at %p\n", ptr->ExceptionRecord->ExceptionAddress );
|
||||||
|
return EXCEPTION_EXECUTE_HANDLER;
|
||||||
|
}
|
||||||
|
|
||||||
struct backend_cpu* be_cpu;
|
struct backend_cpu* be_cpu;
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
extern struct backend_cpu be_i386;
|
extern struct backend_cpu be_i386;
|
||||||
|
@ -644,6 +650,8 @@ int main(int argc, char** argv)
|
||||||
/* Initialize the output */
|
/* Initialize the output */
|
||||||
dbg_houtput = GetStdHandle(STD_OUTPUT_HANDLE);
|
dbg_houtput = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
|
SetUnhandledExceptionFilter( top_filter );
|
||||||
|
|
||||||
/* Initialize internal vars */
|
/* Initialize internal vars */
|
||||||
if (!dbg_load_internal_vars()) return -1;
|
if (!dbg_load_internal_vars()) return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue