From patchwork Sun Oct 19 20:39:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 3284 Received: (qmail 27958 invoked by alias); 19 Oct 2014 20:40:02 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 27937 invoked by uid 89); 19 Oct 2014 20:40:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f47.google.com Received: from mail-pa0-f47.google.com (HELO mail-pa0-f47.google.com) (209.85.220.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 19 Oct 2014 20:39:59 +0000 Received: by mail-pa0-f47.google.com with SMTP id rd3so3837451pab.20 for ; Sun, 19 Oct 2014 13:39:58 -0700 (PDT) X-Received: by 10.70.41.232 with SMTP id i8mr22958720pdl.68.1413751197810; Sun, 19 Oct 2014 13:39:57 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id d17sm7309569pdj.32.2014.10.19.13.39.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Oct 2014 13:39:57 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [OB PATCH] Fix some comments to say minus_one_ptid instead of PID == -1 Date: Sun, 19 Oct 2014 13:39:10 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. Committed as obvious. 2014-10-19 Doug Evans * gdbthread.h (set_running): Fix comment. (set_executing, finish_thread_state): Fix comment. 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_stateg (ptid_t ptid);