[PATCH 2/6] gdb/infcmd: update the comment for 'attach_post_wait'

Tankut Baris Aktemur via Gdb-patches
2021-04-21T12:58:00Z

gdb/ChangeLog:
2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>

* infcmd.c (attach_post_wait): Update the function comment.
---
gdb/infcmd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index f89eb7beb03..3439568be00 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. */
--
2.17.1