Fix build breakage from my previous commit.

Now I test for PT_SETOPTIONS being #defined.
Remove trailing whitespace.
No actual code changes.
This commit is contained in:
Denys Vlasenko 2008-12-23 16:14:42 +00:00
parent 1e3ce32a4f
commit b1efe53531
5 changed files with 8 additions and 6 deletions

View File

@ -2408,7 +2408,9 @@ Process %d attached (waiting for parent)\n",
return -1;
}
}
#ifdef LINUX /* add more OSes after you verified it works for them */
/* PTRACE_SETOPTIONS is not a #define. PT_SETOPTIONS is. */
/* Add more OSes after you verified it works for them. */
#if defined LINUX && defined PT_SETOPTIONS
/*
* Ask kernel to set signo to SIGTRAP | 0x80
* on ptrace-generated SIGTRAPs, and mark
@ -2423,7 +2425,7 @@ Process %d attached (waiting for parent)\n",
goto tracing;
}
#ifdef LINUX
#if defined LINUX && defined PT_SETOPTIONS
if (tcp->sigtrap80 != SIGTRAP && WSTOPSIG(status) == SIGTRAP) {
/*
* We told ptrace to report SIGTRAP | 0x80 on this process