]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Implement windows_nat_target::stop
authorPatrick Monnerat <patrick@monnerat.net>
Sat, 4 Apr 2026 12:52:48 +0000 (14:52 +0200)
committerPatrick Monnerat <patrick@monnerat.net>
Thu, 23 Apr 2026 07:54:29 +0000 (09:54 +0200)
Insight makes a difference between hitting Ctrl-C (that triggers
target::pass_ctrlc) and clicking the GUI stop button, triggering
target::stop).

As windows_nat did not implement the stop method, the GUI stop button
was inoperant on Windows.

gdb/windows-nat.c
gdb/windows-nat.h

index 964d87c24ef9783bb92fbb14adc729b61c9ed47b..65dfc0c1800c344aa08ff7b43500d40fc28e2bf2 100644 (file)
@@ -909,6 +909,12 @@ windows_nat_target::pass_ctrlc ()
   interrupt ();
 }
 
+void
+windows_nat_target::stop (ptid_t ptid)
+{
+  interrupt ();
+}
+
 /* Get the next event from the child.  Returns the thread ptid.  */
 
 ptid_t
index 8263729554bee267350c313b5a083129f751c649..4368a29b2bb44f9767b897d641ed4f200f70eb4e 100644 (file)
@@ -141,6 +141,7 @@ struct windows_nat_target : public inf_child_target
 
   void interrupt () override;
   void pass_ctrlc () override;
+  void stop (ptid_t ptid) override;
 
   const char *pid_to_exec_file (int pid) override;