aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-22 17:22:38 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-22 17:22:38 +0200
commit6fee5eee88a622d3e1ce06c18342365a98db1d40 (patch)
treec005c9296933d07561d7ab5ed6c64a3710da4815
parent27d0790a58e6606eb3404a8d10a9dcee82817987 (diff)
downloadfsf-binutils-gdb-6fee5eee88a622d3e1ce06c18342365a98db1d40.zip
fsf-binutils-gdb-6fee5eee88a622d3e1ce06c18342365a98db1d40.tar.gz
fsf-binutils-gdb-6fee5eee88a622d3e1ce06c18342365a98db1d40.tar.bz2
gdb/infcmd: update the comment for 'attach_post_wait'
gdb/ChangeLog: 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * infcmd.c (attach_post_wait): Update the function comment.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/infcmd.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 191b171..58480dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+ * infcmd.c (attach_post_wait): Update the function comment.
+
+2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
* infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
Update the references below.
(struct attach_command_continuation_args)
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index f89eb7b..3439568 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2467,8 +2467,8 @@ enum attach_post_wait_mode
};
/* Called after we've attached to a process and we've seen it stop for
- the first time. If ASYNC_EXEC is true, re-resume threads that
- should be running. Else if ATTACH, */
+ the first time. Resume, stop, or don't touch the threads according
+ to MODE. */
static void
attach_post_wait (int from_tty, enum attach_post_wait_mode mode)
@@ -2486,7 +2486,7 @@ attach_post_wait (int from_tty, enum attach_post_wait_mode mode)
/* The user requested an `attach&', so be sure to leave threads
that didn't get a signal running. */
- /* Immediatelly resume all suspended threads of this inferior,
+ /* Immediately resume all suspended threads of this inferior,
and this inferior only. This should have no effect on
already running threads. If a thread has been stopped with a
signal, leave it be. */