mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
* strace.cc (proc_child): Don't right-shift exit value.
(main): Call ExitProcess() to exit exactly the same way as any straced child.
This commit is contained in:
parent
fa5f82b286
commit
44e1d662cb
@ -1,3 +1,9 @@
|
|||||||
|
2012-01-31 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
|
* strace.cc (proc_child): Don't right-shift exit value.
|
||||||
|
(main): Call ExitProcess() to exit exactly the same way as any straced
|
||||||
|
child.
|
||||||
|
|
||||||
2012-01-29 Corinna Vinschen <corinna@vinschen.de>
|
2012-01-29 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* tzset.c: Throughout use wide characters to be locale agnostic.
|
* tzset.c: Throughout use wide characters to be locale agnostic.
|
||||||
|
@ -680,7 +680,7 @@ proc_child (unsigned mask, FILE *ofile, pid_t pid)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EXIT_PROCESS_DEBUG_EVENT:
|
case EXIT_PROCESS_DEBUG_EVENT:
|
||||||
res = ev.u.ExitProcess.dwExitCode >> 8;
|
res = ev.u.ExitProcess.dwExitCode;
|
||||||
remove_child (ev.dwProcessId);
|
remove_child (ev.dwProcessId);
|
||||||
break;
|
break;
|
||||||
case EXCEPTION_DEBUG_EVENT:
|
case EXCEPTION_DEBUG_EVENT:
|
||||||
@ -1076,12 +1076,11 @@ character #%d.\n", optarg, (int) (endptr - optarg), endptr);
|
|||||||
if (!ofile)
|
if (!ofile)
|
||||||
ofile = stdout;
|
ofile = stdout;
|
||||||
|
|
||||||
DWORD res = 0;
|
|
||||||
if (toggle)
|
if (toggle)
|
||||||
dotoggle (pid);
|
dotoggle (pid);
|
||||||
else
|
else
|
||||||
res = dostrace (mask, ofile, pid, argv + optind);
|
ExitProcess (dostrace (mask, ofile, pid, argv + optind));
|
||||||
return res;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CloseHandle
|
#undef CloseHandle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user