winedbg: 'winedbg --auto' and 'winedbg --minidump' should detach when done so as to not mess up the crashed process exit code.
This commit is contained in:
parent
5fcce569ce
commit
9271fcc86d
|
@ -237,7 +237,7 @@ static void crash_and_winedbg(HKEY hkey, const char* argv0)
|
||||||
trace("waiting for child exit...\n");
|
trace("waiting for child exit...\n");
|
||||||
ok(WaitForSingleObject(info.hProcess, 60000) == WAIT_OBJECT_0, "Timed out waiting for the child to crash\n");
|
ok(WaitForSingleObject(info.hProcess, 60000) == WAIT_OBJECT_0, "Timed out waiting for the child to crash\n");
|
||||||
ok(GetExitCodeProcess(info.hProcess, &exit_code), "GetExitCodeProcess failed: err=%d\n", GetLastError());
|
ok(GetExitCodeProcess(info.hProcess, &exit_code), "GetExitCodeProcess failed: err=%d\n", GetLastError());
|
||||||
todo_wine ok(exit_code == STATUS_ACCESS_VIOLATION, "exit code = %08x\n", exit_code);
|
ok(exit_code == STATUS_ACCESS_VIOLATION, "exit code = %08x\n", exit_code);
|
||||||
CloseHandle(info.hProcess);
|
CloseHandle(info.hProcess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -893,7 +893,7 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
|
||||||
if (ds != start_ok) return ds;
|
if (ds != start_ok) return ds;
|
||||||
hFile = parser_generate_command_file("echo Modules:", "info share",
|
hFile = parser_generate_command_file("echo Modules:", "info share",
|
||||||
"echo Threads:", "info threads",
|
"echo Threads:", "info threads",
|
||||||
NULL);
|
"detach", NULL);
|
||||||
}
|
}
|
||||||
else if (!strcmp(argv[0], "--minidump"))
|
else if (!strcmp(argv[0], "--minidump"))
|
||||||
{
|
{
|
||||||
|
@ -942,7 +942,7 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
|
||||||
/* FIXME: should generate unix name as well */
|
/* FIXME: should generate unix name as well */
|
||||||
dbg_printf("Capturing program state in %s\n", tmp + 9);
|
dbg_printf("Capturing program state in %s\n", tmp + 9);
|
||||||
}
|
}
|
||||||
hFile = parser_generate_command_file(tmp, NULL);
|
hFile = parser_generate_command_file(tmp, "detach", NULL);
|
||||||
}
|
}
|
||||||
else return start_error_parse;
|
else return start_error_parse;
|
||||||
if (hFile == INVALID_HANDLE_VALUE) return start_error_parse;
|
if (hFile == INVALID_HANDLE_VALUE) return start_error_parse;
|
||||||
|
|
Loading…
Reference in New Issue