From patchwork Tue Dec 2 18:09:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 4036 Received: (qmail 13623 invoked by alias); 2 Dec 2014 18:09:18 -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 13607 invoked by uid 89); 2 Dec 2014 18:09:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-pd0-f202.google.com Received: from mail-pd0-f202.google.com (HELO mail-pd0-f202.google.com) (209.85.192.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 02 Dec 2014 18:09:15 +0000 Received: by mail-pd0-f202.google.com with SMTP id w10so1774131pde.5 for ; Tue, 02 Dec 2014 10:09:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=MYJUCMfI7bi2cNIxz/U2raBVEnTF/+41DyN40zS5+fU=; b=fdmbuq+1g5j9HXhFUvPpyUxZ3SZkks9sl22ItY6582jdNJx7968Vn3wti7SjzdOkVG L38t49L1C2zzbqH2IYr7JqJXIzU+9TmbsWpuCrri9xFjZ0S5S3sR11U4abQjPTBqou5D 5osmgAUf/e2cGK4ETogbyYSHMA9Sg8n0ag1blYLNE1ypGQNTZ9LAtfKbBhsZY/kB3IUf Qx/K9YF3zDZ29JYwzNrDprX4/VYh6ND6Y7uEkV9isi3/zYV8HdE1WRPXbnVp3BMc6ST6 0Ll/nB5eVbAcbAK96/vI6lcePG43V6DHdEhp+vB28Mf23iQ7lHVabnWbMX4XG8vsh3au d6+A== X-Gm-Message-State: ALoCoQkiHLSlJtoADTU4px56xEP7VJlNM4LgWhF9ruyUZLxOLeBRkFE1PXf5DLs6490163H+PZzYr62JUSUHGC+tFQpWAnEuvutcPFbOEtktKap6aXLLXF5wpUyxtycVUNxlRqAtKcnrPaoQ7ZewdJ60qV4wJDKF+ymxWsZ4JHCswfEWppFpR7Y= X-Received: by 10.68.215.65 with SMTP id og1mr3992293pbc.3.1417543753446; Tue, 02 Dec 2014 10:09:13 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id t28si864934yhb.4.2014.12.02.10.09.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Dec 2014 10:09:13 -0800 (PST) Received: from ruffy.mtv.corp.google.com ([172.17.128.44]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTPS id ZhmO9iH5.1; Tue, 02 Dec 2014 10:09:13 -0800 From: Doug Evans To: gdb-patches@sourceware.org Subject: [COMMITTED PATCH] python/py-infthread.c: Whitespace fixes. Date: Tue, 02 Dec 2014 10:09:12 -0800 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. The easiest way to adhere to coding standards is to not try to get creative or clever, and just follow what's already there. Alas this simple algorithm breaks down then the entire file is broken. [And I can't fault new contributors for taking what they see in the file as the coding standard - so it's important to keep the source base clean.] Committed. 2014-12-02 Doug Evans * python/py-infthread.c: Whitespace fixes. diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index 1399322..7fa2ca8 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -36,8 +36,6 @@ static PyTypeObject thread_object_type } \ } while (0) - - thread_object * create_thread_object (struct thread_info *tp) { @@ -53,8 +51,6 @@ create_thread_object (struct thread_info *tp) return thread_obj; } - - static void thpy_dealloc (PyObject *self) { @@ -131,6 +127,7 @@ thpy_get_num (PyObject *self, void *closure) /* Getter for InferiorThread.ptid -> (pid, lwp, tid). Returns a tuple with the thread's ptid components. */ + static PyObject * thpy_get_ptid (PyObject *self, void *closure) { @@ -158,6 +155,7 @@ thpy_get_ptid (PyObject *self, void *closure) /* Implementation of InferiorThread.switch (). Makes this the GDB selected thread. */ + static PyObject * thpy_switch (PyObject *self, PyObject *args) { @@ -177,6 +175,7 @@ thpy_switch (PyObject *self, PyObject *args) /* Implementation of InferiorThread.is_stopped () -> Boolean. Return whether the thread is stopped. */ + static PyObject * thpy_is_stopped (PyObject *self, PyObject *args) { @@ -192,6 +191,7 @@ thpy_is_stopped (PyObject *self, PyObject *args) /* Implementation of InferiorThread.is_running () -> Boolean. Return whether the thread is running. */ + static PyObject * thpy_is_running (PyObject *self, PyObject *args) { @@ -207,6 +207,7 @@ thpy_is_running (PyObject *self, PyObject *args) /* Implementation of InferiorThread.is_exited () -> Boolean. Return whether the thread is exited. */ + static PyObject * thpy_is_exited (PyObject *self, PyObject *args) { @@ -237,6 +238,7 @@ thpy_is_valid (PyObject *self, PyObject *args) /* Implementation of gdb.selected_thread () -> gdb.InferiorThread. Returns the selected thread object. */ + PyObject * gdbpy_selected_thread (PyObject *self, PyObject *args) { @@ -252,8 +254,6 @@ gdbpy_selected_thread (PyObject *self, PyObject *args) Py_RETURN_NONE; } - - int gdbpy_initialize_thread (void) { @@ -264,8 +264,6 @@ gdbpy_initialize_thread (void) (PyObject *) &thread_object_type); } - - static PyGetSetDef thread_object_getset[] = { { "name", thpy_get_name, thpy_set_name,