This commit is contained in:
Justine Tunney 2021-04-24 19:49:49 -07:00
parent 472b95fea3
commit c029e83dd8
7 changed files with 118 additions and 25 deletions

View file

@ -232,8 +232,6 @@ relegated void __oncrash(int sig, struct siginfo *si, ucontext_t *ctx) {
err = errno;
if (once) _exit(119);
once = true;
/* TODO(jart): Needs translation for ucontext_t and possibly siginfo_t. */
if (IsFreebsd() || IsOpenbsd()) ctx = NULL;
rip = ctx ? ctx->uc_mcontext.rip : 0;
if ((gdbpid = IsDebuggerPresent(true))) {
DebugBreak();