Skip to content

Commit d8c800a

Browse files
committed
IsDebuggerPresent is not working
1 parent eb8a291 commit d8c800a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

winsup/cygwin/local_includes/debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ details. */
77
#if !defined(_DEBUG_H_)
88
#define _DEBUG_H_
99

10-
#define being_debugged() (IsDebuggerPresent ())
10+
#define being_debugged() (true)
1111

1212
#ifndef DEBUGGING
1313
# define cygbench(s)

winsup/cygwin/miscfuncs.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,6 @@ NT_readline::gets ()
434434
static void
435435
SetThreadNameExc (DWORD dwThreadID, const char* threadName)
436436
{
437-
if (!IsDebuggerPresent ())
438-
return;
439-
440437
ULONG_PTR info[] =
441438
{
442439
0x1000, /* type, must be 0x1000 */

0 commit comments

Comments
 (0)