diff options
author | Christopher Faylor <cgf@redhat.com> | 2003-02-14 03:03:26 +0000 |
---|---|---|
committer | Christopher Faylor <cgf@redhat.com> | 2003-02-14 03:03:26 +0000 |
commit | e07f1ec5d50d3781167acad813023c327a98bfd8 (patch) | |
tree | d14e67e6282ef41f8e1efda6dcbc41cc8a62e90a /winsup/cygwin/exceptions.cc | |
parent | 335bdeb9375bfba164a07467a0ce6e9341a89a55 (diff) | |
download | gdb-e07f1ec5d50d3781167acad813023c327a98bfd8.tar.gz |
merge from trunk.
Reorganize includes throughout so that path.h comes before fhandler.h.
Eliminate path_conv arguments from fhandler functions which take them,
throughout. Use get_name() and get_win32_name() consistently throughout for
fhandler objects. Use build_fh_* functions throughout, where appropriate.
* fhandler.h (fhandler_base): Store path_conv struct here. Remove dev.
* dtable.h (dtable::build_fhandler_*): Remove.
(build_fh_dev): New.
(build_fh_pc): New.
(build_fh_name): New.
* dtable.cc (build_fh_dev): New.
(build_fh_pc): New.
(build_fh_name): New.
* fhandler.h (fhandler_base::set_name): Change argument.
* fhandler.cc (fhandler_base::set_name): Just accept a path_conv argument.
(executable_states): Move.
* path.h (executable_state): Accept.
* syscalls.cc (stat_worker): Make static.
* winsup.h (stat_worker): Remove definition.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 352cda0d064..e2df0c91315 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); */ |