diff options
author | Christopher Faylor <me@cgf.cx> | 2003-02-14 02:52:29 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-02-14 02:52:29 +0000 |
commit | dff01e3aa807bbe668dcb16dbf8dc2df954340c6 (patch) | |
tree | 2c627b9696f569fcbb5b92ef3c915376149a664b | |
parent | 6a25a6219caebc2d91d4b22f912ce0e3c86bd8ff (diff) | |
download | cygnal-dff01e3aa807bbe668dcb16dbf8dc2df954340c6.tar.gz cygnal-dff01e3aa807bbe668dcb16dbf8dc2df954340c6.tar.bz2 cygnal-dff01e3aa807bbe668dcb16dbf8dc2df954340c6.zip |
* exceptions.cc (try_to_debug): Don't reset priority when returning from
non-waitloop call.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/exceptions.cc | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5c5e44c1a..4c36e5470 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-02-13 Christopher Faylor <cgf@redhat.com> + + * exceptions.cc (try_to_debug): Don't reset priority when returning + from non-waitloop call. 2003-02-13 Vaclav Haisman <V.Haisman@sh.cvut.cz> Christopher Faylor <cgf@redhat.com> diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 352cda0d0..e2df0c913 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -392,17 +392,16 @@ try_to_debug (bool waitloop) system_printf ("Failed to start debugger: %E"); else { - SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE); if (!waitloop) return 1; + SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE); while (!being_debugged ()) Sleep (0); Sleep (2000); small_printf ("*** continuing from debugger call\n"); + SetThreadPriority (GetCurrentThread (), prio); } - SetThreadPriority (GetCurrentThread (), prio); - /* FIXME: need to know handles of all running threads to resume_all_threads_except (current_thread_id); */ |