Skip to content

Commit 4d24c66

Browse files
author
Hubert Tong
committed
is_debugger_present: Fix unsupported statement-of-fact
The note in the description of `is_debugger_present` reads as a statement of fact about the normatively implementation-defined behaviour. Fix this to read as a statement of intent.
1 parent d817067 commit 4d24c66

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/diagnostics.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,12 +2493,13 @@
24932493
\impldef{default semantics of \tcode{is_debugger_present}}.
24942494

24952495
\begin{note}
2496-
When tracing the execution of a program with a debugger, an implementation
2497-
returns \tcode{true}. An implementation performs an immediate query, as needed,
2498-
to determine if the program is traced by a debugger. On Windows or equivalent
2499-
systems, this can be achieved by calling the \tcode{::IsDebuggerPresent()} Win32
2500-
function. On POSIX, this can be achieved by checking for a tracer parent process,
2501-
with best effort determination that such a tracer parent process is a debugger.
2496+
It is intended that, when tracing the execution of a program with a debugger, an
2497+
implementation returns \tcode{true} with the use of an immediate query, as
2498+
needed, to determine if the program is being traced by a debugger. On Windows or
2499+
equivalent systems, this can be achieved by calling the
2500+
\tcode{::IsDebuggerPresent()} Win32 function. On POSIX, this can be achieved by
2501+
checking for a tracer parent process, with best effort determination that such a
2502+
tracer parent process is a debugger.
25022503
\end{note}
25032504

25042505
\end{itemdescr}

0 commit comments

Comments
 (0)