diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-06-12 16:06:45 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-06-12 16:06:45 -0400 |
commit | 84b300de3666ce1c86820a44f22ffd76eca04085 (patch) | |
tree | fbec53a5647667558fd627c53a9e01e1eda727bf /gdbserver/win32-low.cc | |
parent | 96c16e2b7f47c301912ac92f53b756e26ef44ffb (diff) | |
download | gdb-84b300de3666ce1c86820a44f22ffd76eca04085.zip gdb-84b300de3666ce1c86820a44f22ffd76eca04085.tar.gz gdb-84b300de3666ce1c86820a44f22ffd76eca04085.tar.bz2 |
gdbserver: remove support for ARM/WinCE
This port has been unmaintained for years, remove it.
gdbserver/ChangeLog:
* Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
* configure.srv: Remove mingw32ce cases.
* server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
* win32-low.h (to_back_slashes): Remove.
* win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
Change-Id: Ib75c0b55b0ab7caca38bbeff5f2fa9397a8e7e8d
Diffstat (limited to 'gdbserver/win32-low.cc')
-rw-r--r-- | gdbserver/win32-low.cc | 101 |
1 files changed, 29 insertions, 72 deletions
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index a42fe25..a11cc74 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -1421,69 +1421,39 @@ get_child_debug_event (DWORD *continue_status, goto gotevent; } -#ifndef _WIN32_WCE attaching = 0; -#else - if (attaching) - { - /* WinCE doesn't set an initial breakpoint automatically. To - stop the inferior, we flush all currently pending debug - events -- the thread list and the dll list are always - reported immediatelly without delay, then, we suspend all - threads and pretend we saw a trap at the current PC of the - main thread. - - Contrary to desktop Windows, Windows CE *does* report the dll - names on LOAD_DLL_DEBUG_EVENTs resulting from a - DebugActiveProcess call. This limits the way we can detect - if all the dlls have already been reported. If we get a real - debug event before leaving attaching, the worst that will - happen is the user will see a spurious breakpoint. */ - - current_event.dwDebugEventCode = 0; - if (!wait_for_debug_event (¤t_event, 0)) - { - OUTMSG2(("no attach events left\n")); - fake_breakpoint_event (); - attaching = 0; - } - else - OUTMSG2(("got attach event\n")); - } - else -#endif - { - gdb::optional<pending_stop> stop = fetch_pending_stop (debug_threads); - if (stop.has_value ()) - { - *ourstatus = stop->status; - current_event = stop->event; - ptid = debug_event_ptid (¤t_event); - current_thread = find_thread_ptid (ptid); - return 1; - } + { + gdb::optional<pending_stop> stop = fetch_pending_stop (debug_threads); + if (stop.has_value ()) + { + *ourstatus = stop->status; + current_event = stop->event; + ptid = debug_event_ptid (¤t_event); + current_thread = find_thread_ptid (ptid); + return 1; + } - /* Keep the wait time low enough for comfortable remote - interruption, but high enough so gdbserver doesn't become a - bottleneck. */ - if (!wait_for_debug_event (¤t_event, 250)) - { - DWORD e = GetLastError(); + /* Keep the wait time low enough for comfortable remote + interruption, but high enough so gdbserver doesn't become a + bottleneck. */ + if (!wait_for_debug_event (¤t_event, 250)) + { + DWORD e = GetLastError(); - if (e == ERROR_PIPE_NOT_CONNECTED) - { - /* This will happen if the loader fails to succesfully - load the application, e.g., if the main executable - tries to pull in a non-existing export from a - DLL. */ - ourstatus->kind = TARGET_WAITKIND_EXITED; - ourstatus->value.integer = 1; - return 1; - } + if (e == ERROR_PIPE_NOT_CONNECTED) + { + /* This will happen if the loader fails to succesfully + load the application, e.g., if the main executable + tries to pull in a non-existing export from a + DLL. */ + ourstatus->kind = TARGET_WAITKIND_EXITED; + ourstatus->value.integer = 1; + return 1; + } - return 0; - } - } + return 0; + } + } gotevent: @@ -1534,19 +1504,6 @@ get_child_debug_event (DWORD *continue_status, main_thread_id, current_event.u.CreateProcessInfo.hThread, current_event.u.CreateProcessInfo.lpThreadLocalBase); - -#ifdef _WIN32_WCE - if (!attaching) - { - /* Windows CE doesn't set the initial breakpoint - automatically like the desktop versions of Windows do. - We add it explicitly here. It will be removed as soon as - it is hit. */ - set_breakpoint_at ((CORE_ADDR) (long) current_event.u - .CreateProcessInfo.lpStartAddress, - auto_delete_breakpoint); - } -#endif break; case EXIT_PROCESS_DEBUG_EVENT: |