aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2018-04-19 22:48:41 +0200
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2018-04-19 22:59:17 +0200
commit224608c3ca1575bcbea82562f05d3fdd0390abcf (patch)
tree554f62fc760103f91b3ade78723215731433bafb
parentf31c089e788f7b45c9030ac399cd34eb3ccdb9c1 (diff)
downloadgdb-224608c3ca1575bcbea82562f05d3fdd0390abcf.zip
gdb-224608c3ca1575bcbea82562f05d3fdd0390abcf.tar.gz
gdb-224608c3ca1575bcbea82562f05d3fdd0390abcf.tar.bz2
[OB PATCH] Fix some comments in thread.c
Fix some typos. Remove obsolete comment about dispatch to thread_apply_command, rather tell that thread_command either switches to a thread, or prints the current thread. 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> * thread.c (thread_apply_all_command): Fix comment. (thread_command): Fix comment.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/thread.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5c87424..0db5c46 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * thread.c (thread_apply_all_command): Fix comment.
+ (thread_command): Fix comment.
+
2018-04-10 Alan Hayward <alan.hayward@arm.com>
* common/tdesc.h (tdesc_create_feature): Remove xml filename
diff --git a/gdb/thread.c b/gdb/thread.c
index c1a8174..23aa5ba 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -1582,12 +1582,12 @@ tp_array_compar (const thread_info *a, const thread_info *b)
}
/* Apply a GDB command to a list of threads. List syntax is a whitespace
- seperated list of numbers, or ranges, or the keyword `all'. Ranges consist
- of two numbers seperated by a hyphen. Examples:
+ separated list of numbers, or ranges, or the keyword `all'. Ranges consist
+ of two numbers separated by a hyphen. Examples:
thread apply 1 2 7 4 backtrace Apply backtrace cmd to threads 1,2,7,4
thread apply 2-7 9 p foo(1) Apply p foo(1) cmd to threads 2->7 & 9
- thread apply all p x/i $pc Apply x/i $pc cmd to all threads. */
+ thread apply all x/i $pc Apply x/i $pc cmd to all threads. */
static void
thread_apply_all_command (const char *cmd, int from_tty)
@@ -1733,8 +1733,7 @@ thread_apply_command (const char *tidlist, int from_tty)
}
}
-/* Switch to the specified thread. Will dispatch off to thread_apply_command
- if prefix of arg is `apply'. */
+/* Switch to the specified thread, or print the current thread. */
void
thread_command (const char *tidstr, int from_tty)