aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/win32-low.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-04-16 07:24:57 -0600
committerTom Tromey <tromey@adacore.com>2020-04-16 07:24:57 -0600
commita010605fef0eba73c564c3dd22e0a6ecbc26b10e (patch)
treeab7b331485ab546acfd5141522d5cc0072eb42ac /gdbserver/win32-low.cc
parentefba5c2319d6c25393e5cce9a2d30bbc0cb53123 (diff)
downloadgdb-a010605fef0eba73c564c3dd22e0a6ecbc26b10e.zip
gdb-a010605fef0eba73c564c3dd22e0a6ecbc26b10e.tar.gz
gdb-a010605fef0eba73c564c3dd22e0a6ecbc26b10e.tar.bz2
Fix Cygwin gdb build
Simon pointed out that the windows-nat sharing series broke the Cygwin build. This patch fixes the problem, by moving the Cygwin-specific code to a new handler function. This approach is taken because this code calls find_pc_partial_function, which isn't available in gdbserver. gdb/ChangeLog 2020-04-16 Tom Tromey <tromey@adacore.com> * windows-nat.c (windows_nat::handle_access_violation): New function. * nat/windows-nat.h (handle_access_violation): Declare. * nat/windows-nat.c (handle_exception): Move Cygwin code to windows-nat.c. Call handle_access_violation. gdbserver/ChangeLog 2020-04-16 Tom Tromey <tromey@adacore.com> * win32-low.cc (windows_nat::handle_access_violation): New function.
Diffstat (limited to 'gdbserver/win32-low.cc')
-rw-r--r--gdbserver/win32-low.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc
index 75305a4..5a6f0df 100644
--- a/gdbserver/win32-low.cc
+++ b/gdbserver/win32-low.cc
@@ -1198,6 +1198,14 @@ windows_nat::handle_ms_vc_exception (const EXCEPTION_RECORD *rec)
return false;
}
+/* See nat/windows-nat.h. */
+
+bool
+windows_nat::handle_access_violation (const EXCEPTION_RECORD *rec)
+{
+ return false;
+}
+
/* A helper function that will, if needed, set
'stopped_at_software_breakpoint' on the thread and adjust the
PC. */