aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-10-19 13:36:54 -0700
committerDoug Evans <xdje42@gmail.com>2014-10-19 13:36:54 -0700
commit28153fd32137e4f1f081f3477c5b76e0bb387f44 (patch)
tree03a3ba76e4b7e50eaae3db87809aab21a1dcdc07 /gdb
parentfc9b8e475d13b13e6cac1441aef649ce45929111 (diff)
downloadgdb-28153fd32137e4f1f081f3477c5b76e0bb387f44.zip
gdb-28153fd32137e4f1f081f3477c5b76e0bb387f44.tar.gz
gdb-28153fd32137e4f1f081f3477c5b76e0bb387f44.tar.bz2
Fix some comments to say minus_one_ptid instead of PID == -1.
gdb/ChangeLog: * gdbthread.h (set_running): Fix comment. (set_executing, finish_thread_state): Fix comment.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbthread.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 801feba..76957c4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-19 Doug Evans <xdje42@gmail.com>
+
+ * gdbthread.h (set_running): Fix comment.
+ (set_executing, finish_thread_state): Fix comment.
+
2014-10-18 Doug Evans <xdje42@gmail.com>
* linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 937bd55..fb47bae 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -368,7 +368,7 @@ extern int thread_count (void);
extern void switch_to_thread (ptid_t ptid);
/* Marks thread PTID is running, or stopped.
- If ptid_get_pid (PTID) is -1, marks all threads. */
+ If PTID is minus_one_ptid, marks all threads. */
extern void set_running (ptid_t ptid, int running);
/* Marks or clears thread(s) PTID as having been requested to stop.
@@ -403,7 +403,7 @@ extern int is_exited (ptid_t ptid);
/* In the frontend's perpective, is this thread stopped? */
extern int is_stopped (ptid_t ptid);
-/* Marks thread PTID as executing, or not. If ptid_get_pid (PTID) is -1,
+/* Marks thread PTID as executing, or not. If PTID is minus_one_ptid,
marks all threads.
Note that this is different from the running state. See the
@@ -424,7 +424,7 @@ extern int threads_are_executing (void);
"executing" -> "running"
"exited" -> "exited"
- If ptid_get_pid (PTID) is -1, go over all threads.
+ If PTID is minus_one_ptid, go over all threads.
Notifications are only emitted if the thread state did change. */
extern void finish_thread_state (ptid_t ptid);