DEBUGGING guards in winsup/cygwin/exceptions.cc are missing

Volker Quetschke quetschke@scytek.de
Mon Feb 9 01:46:00 GMT 2004


When compiling the cygwin dll from cvs, without --enable-debugging
the build fails in winsup/cygwin/exceptions.cc because console_printf
has no prototype defined without DEBUGGING set.

Something like the following fixes this:

diff -u -r1.201 exceptions.cc
--- src/winsup/cygwin/exceptions.cc	8 Feb 2004 19:59:27 -0000	1.201
+++ src/winsup/cygwin/exceptions.cc	9 Feb 2004 01:38:53 -0000
@@ -361,8 +361,11 @@
  	}
      }

+#ifdef DEBUGGING
    console_printf ("*** starting debugger for pid %u\n",
  		  cygwin_pid (GetCurrentProcessId ()));
+#endif
+
    BOOL dbg;
    dbg = CreateProcess (NULL,
  		       debugger_command,
@@ -387,8 +390,10 @@
        Sleep (2000);
      }

+#ifdef DEBUGGING
    console_printf ("*** continuing pid %u from debugger call (%d)\n",
  		  cygwin_pid (GetCurrentProcessId ()), dbg);
+#endif

    SetThreadPriority (GetCurrentThread (), prio);
    return dbg;

Volker

-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 254 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20040209/9dd57521/attachment.sig>


More information about the Cygwin-patches mailing list