From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 631163844030; Fri, 31 Jul 2020 13:01:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 631163844030 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jon TURNEY To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Remove synchronization event from dumper X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: a5218ff7721bd5df023f576a0e9afb8f099c3b09 X-Git-Newrev: 0d4d2d38fbdf923f379a89b82b6a63580abbaed2 Message-Id: <20200731130136.631163844030@sourceware.org> Date: Fri, 31 Jul 2020 13:01:36 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2020 13:01:36 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0d4d2d38fbdf923f379a89b82b6a63580abbaed2 commit 0d4d2d38fbdf923f379a89b82b6a63580abbaed2 Author: Jon Turney Date: Mon Jul 6 15:02:39 2020 +0100 Cygwin: Remove synchronization event from dumper The use of the 'cygwin_error_start_event' for synchronization with dumper was removed from the DLL in commit 8abeff1e (April 2001). Diff: --- winsup/utils/dumper.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc index 3eb4af275..816320e6d 100644 --- a/winsup/utils/dumper.cc +++ b/winsup/utils/dumper.cc @@ -627,10 +627,6 @@ dumper::collect_process_information () return 0; } - char event_name[sizeof ("cygwin_error_start_event") + 20]; - sprintf (event_name, "cygwin_error_start_event%16x", (unsigned int) pid); - HANDLE sync_with_debugee = OpenEvent (EVENT_MODIFY_STATE, FALSE, event_name); - DEBUG_EVENT current_event; while (1) @@ -701,10 +697,6 @@ dumper::collect_process_information () goto failed; }; - /* signal a debugee that we've finished */ - if (sync_with_debugee) - SetEvent (sync_with_debugee); - break; default: @@ -730,10 +722,6 @@ failed: /* Otherwise, the debuggee is terminated when this process exits (as DebugSetProcessKillOnExit() defaults to TRUE) */ - /* set debugee free */ - if (sync_with_debugee) - SetEvent (sync_with_debugee); - return 0; }