mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
* exceptions.cc (try_to_debug): Don't reset priority when returning from
non-waitloop call.
This commit is contained in:
parent
6a25a6219c
commit
dff01e3aa8
@ -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>
|
2003-02-13 Vaclav Haisman <V.Haisman@sh.cvut.cz>
|
||||||
Christopher Faylor <cgf@redhat.com>
|
Christopher Faylor <cgf@redhat.com>
|
||||||
|
@ -392,17 +392,16 @@ try_to_debug (bool waitloop)
|
|||||||
system_printf ("Failed to start debugger: %E");
|
system_printf ("Failed to start debugger: %E");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE);
|
|
||||||
if (!waitloop)
|
if (!waitloop)
|
||||||
return 1;
|
return 1;
|
||||||
|
SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE);
|
||||||
while (!being_debugged ())
|
while (!being_debugged ())
|
||||||
Sleep (0);
|
Sleep (0);
|
||||||
Sleep (2000);
|
Sleep (2000);
|
||||||
small_printf ("*** continuing from debugger call\n");
|
small_printf ("*** continuing from debugger call\n");
|
||||||
|
SetThreadPriority (GetCurrentThread (), prio);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetThreadPriority (GetCurrentThread (), prio);
|
|
||||||
|
|
||||||
/* FIXME: need to know handles of all running threads to
|
/* FIXME: need to know handles of all running threads to
|
||||||
resume_all_threads_except (current_thread_id);
|
resume_all_threads_except (current_thread_id);
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user