diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-12 11:10:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-12 11:10:57 -0400 |
commit | d4717483730cd8b9d28fd1f0741cd005e9a129e2 (patch) | |
tree | 625aacb22d4cf2396670c14c35856ea28827eeb4 /gdb | |
parent | 43e05cd4f48b550023819d823fec02abf54e26d3 (diff) | |
download | gdb-d4717483730cd8b9d28fd1f0741cd005e9a129e2.zip gdb-d4717483730cd8b9d28fd1f0741cd005e9a129e2.tar.gz gdb-d4717483730cd8b9d28fd1f0741cd005e9a129e2.tar.bz2 |
gdb, gdbserver: remove WinCE support code
The support for WinCE was removed with commit 84b300de3666 ("gdbserver:
remove support for ARM/WinCE"). There is some leftover code for WinCE
support, guarded by the _WIN32_WCE macro, which I didn't know of at the
time.
I didn't remove the _WIN32_WCE references in the tests, because in
theory we still support the WinCE architecture in GDB (when debugging
remotely). So someone could run a test with that (although I'd be
really surprised).
gdb/ChangeLog:
* nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
* nat/windows-nat.h: Likewise.
gdbserver/ChangeLog:
* win32-low.cc: Remove all code guarded by _WIN32_WCE.
* win32-low.h: Likewise.
Change-Id: I7a871b897e2135dc195b10690bff2a01d9fac05a
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/nat/windows-nat.c | 11 | ||||
-rw-r--r-- | gdb/nat/windows-nat.h | 5 |
3 files changed, 5 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5c38a4e..c363dc9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-04-12 Simon Marchi <simon.marchi@polymtl.ca> + + * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE. + * nat/windows-nat.h: Likewise. + 2021-04-10 Eli Zaretskii <eliz@gnu.org> * windows-nat.c (windows_nat::handle_load_dll): Call diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index 659a756..794e2df 100644 --- a/gdb/nat/windows-nat.c +++ b/gdb/nat/windows-nat.c @@ -117,11 +117,6 @@ get_image_name (HANDLE h, void *address, int unicode) if (address == NULL) return NULL; -#ifdef _WIN32_WCE - /* Windows CE reports the address of the image name, - instead of an address of a pointer into the image name. */ - address_ptr = address; -#else /* See if we could read the address of a string, and that the address isn't null. */ if (!ReadProcessMemory (h, address, &address_ptr, @@ -129,7 +124,6 @@ get_image_name (HANDLE h, void *address, int unicode) || done != sizeof (address_ptr) || !address_ptr) return NULL; -#endif /* Find the length of the string. */ while (ReadProcessMemory (h, address_ptr + len++ * size, &b, size, &done) @@ -262,11 +256,6 @@ handle_exception (struct target_waitstatus *ourstatus, bool debug_exceptions) case STATUS_WX86_BREAKPOINT: DEBUG_EXCEPTION_SIMPLE ("EXCEPTION_BREAKPOINT"); ourstatus->value.sig = GDB_SIGNAL_TRAP; -#ifdef _WIN32_WCE - /* Remove the initial breakpoint. */ - check_breakpoints ((CORE_ADDR) (long) current_event - .u.Exception.ExceptionRecord.ExceptionAddress); -#endif break; case DBG_CONTROL_C: DEBUG_EXCEPTION_SIMPLE ("DBG_CONTROL_C"); diff --git a/gdb/nat/windows-nat.h b/gdb/nat/windows-nat.h index 84f6505..d8aeaa4 100644 --- a/gdb/nat/windows-nat.h +++ b/gdb/nat/windows-nat.h @@ -67,11 +67,6 @@ struct windows_thread_info was not. */ int suspended = 0; -#ifdef _WIN32_WCE - /* The context as retrieved right after suspending the thread. */ - CONTEXT base_context {}; -#endif - /* The context of the thread, including any manipulations. */ union { |