aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-22 17:22:39 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-22 17:22:39 +0200
commit1194676e0be8d28a2ed631fe2b8d560409240ff0 (patch)
tree8119152d35720a051ef56d12f4971f822fb92910
parent35682f0a64145893cb1f3c0f6df0cfec7330b823 (diff)
downloadfsf-binutils-gdb-1194676e0be8d28a2ed631fe2b8d560409240ff0.zip
fsf-binutils-gdb-1194676e0be8d28a2ed631fe2b8d560409240ff0.tar.gz
fsf-binutils-gdb-1194676e0be8d28a2ed631fe2b8d560409240ff0.tar.bz2
gdb/continuations: do minor cleanup
Inferior continuations are no longer used by the until and finish command. It is used only by the attach command and the remote target upon detecting new inferiors. Update the comment accordingly. Also update another comment about non-existent thread continuations and remove an unused #include. gdb/ChangeLog: 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * continuations.h: Update the general comment. * inferior.h (class inferior) <continuations>: Update the comment. * interps.c: Do not include "continuations.h".
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/continuations.h4
-rw-r--r--gdb/inferior.h3
-rw-r--r--gdb/interps.c1
4 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c3fc5cd..55965a7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+ * continuations.h: Update the general comment.
+ * inferior.h (class inferior) <continuations>: Update the comment.
+ * interps.c: Do not include "continuations.h".
+
+2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
* continuations.h (do_all_inferior_continuations): Remove the 'err'
parameter. Update the references below.
* continuations.c (do_my_continuations_1)
diff --git a/gdb/continuations.h b/gdb/continuations.h
index 7ebe82a..39130c6 100644
--- a/gdb/continuations.h
+++ b/gdb/continuations.h
@@ -25,8 +25,8 @@ struct inferior;
/* To continue the execution commands when running gdb asynchronously.
A continuation structure contains a pointer to a function to be called
to finish the command, once the target has stopped. Such mechanism is
- used by the finish and until commands, and in the remote protocol
- when opening an extended-remote connection. */
+ used by the attach command and the remote target when a new inferior
+ is detected. */
/* Prototype of the continuation callback functions. ARG is the
continuation argument registered in the corresponding
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 66fc180..9ca510e 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -509,8 +509,7 @@ public:
bool detaching = false;
/* What is left to do for an execution command after any thread of
- this inferior stops. For continuations associated with a
- specific thread, see `struct thread_info'. */
+ this inferior stops. */
continuation *continuations = NULL;
/* True if setup_inferior wasn't called for this inferior yet.
diff --git a/gdb/interps.c b/gdb/interps.c
index d15a36a..ec19822 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -37,7 +37,6 @@
#include "interps.h"
#include "completer.h"
#include "top.h" /* For command_loop. */
-#include "continuations.h"
#include "main.h"
/* Each UI has its own independent set of interpreters. */