diff options
author | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:33:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-08 14:47:59 -0600 |
commit | 523d4f80c32f43a6b009645947b94f87df35f79f (patch) | |
tree | 244948a1e348e64a1d3e991fd0fa011c3a18dac7 /gdbserver/win32-low.h | |
parent | e54e59297a747bb4f396345aa090d43f155b5576 (diff) | |
download | gdb-523d4f80c32f43a6b009645947b94f87df35f79f.zip gdb-523d4f80c32f43a6b009645947b94f87df35f79f.tar.gz gdb-523d4f80c32f43a6b009645947b94f87df35f79f.tar.bz2 |
Implement stopped_by_sw_breakpoint for Windows gdbserver
This changes the Windows gdbserver port to implement the
stopped_by_sw_breakpoint target method. This is needed to support
pending stops.
This is a separate patch now, because Pedro suggested splitting it out
for simpler bisecting, in the case that it introduces a bug.
gdbserver/ChangeLog
2020-04-08 Tom Tromey <tromey@adacore.com>
* win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
(win32_process_target::supports_stopped_by_sw_breakpoint):
Declare.
* win32-low.c (win32_supports_z_point_type): Always handle
Z_PACKET_SW_BP.
(win32_insert_point): Call insert_memory_breakpoint when needed.
(win32_remove_point): Call remove_memory_breakpoint when needed.
(win32_process_target::stopped_by_sw_breakpoint)
(win32_process_target::supports_stopped_by_sw_breakpoint): New
methods.
(win32_target_ops): Update.
(maybe_adjust_pc): New function.
(win32_wait): Call maybe_adjust_pc.
Diffstat (limited to 'gdbserver/win32-low.h')
-rw-r--r-- | gdbserver/win32-low.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h index d2b39a4..b3fa392 100644 --- a/gdbserver/win32-low.h +++ b/gdbserver/win32-low.h @@ -155,6 +155,10 @@ public: CORE_ADDR read_pc (regcache *regcache) override; void write_pc (regcache *regcache, CORE_ADDR pc) override; + + bool stopped_by_sw_breakpoint () override; + + bool supports_stopped_by_sw_breakpoint () override; }; /* Retrieve the context for this thread, if not already retrieved. */ |