mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-15 13:29:41 -07:00
clean up stepping test, and remove switch for overriding crash dump path
This commit is contained in:
1 parent
fbdfeea8e6
commit
d7161ea6e6
6 files changed
+29
-18
No files matched your search
@@ -929,6 +929,15 @@ t_entry_point(CmdLine *cmdline)
|
||||
if (!cmd_line_has_flag(cmdline, str8_lit("print_stdout")) && IsDebuggerPresent()) {
|
||||
g_redirect_stdout = 0;
|
||||
}
|
||||
|
||||
// automatically close child processes on exit
|
||||
{
|
||||
HANDLE job_handle = CreateJobObjectA(0, 0);
|
||||
AssertAlways(job_handle != 0);
|
||||
JOBOBJECT_EXTENDED_LIMIT_INFORMATION job_info = { .BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE };
|
||||
AssertAlways(SetInformationJobObject(job_handle, JobObjectExtendedLimitInformation, &job_info, sizeof(job_info)));
|
||||
AssertAlways(AssignProcessToJobObject(job_handle, GetCurrentProcess()));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Handle -out
|
||||
|
||||
Reference in new issue
Block a user