From patchwork Sat Jun 11 02:42:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 12974 Received: (qmail 101781 invoked by alias); 11 Jun 2016 02:42:30 -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 101751 invoked by uid 89); 11 Jun 2016 02:42:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, FSL_HELO_HOME, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=no version=3.3.2 spammy=HX-Identified-User:sentby, HX-Identified-User:auth, HX-Identified-User:authed, HX-Identified-User:smtp X-HELO: gproxy6-pub.mail.unifiedlayer.com Received: from gproxy6-pub.mail.unifiedlayer.com (HELO gproxy6-pub.mail.unifiedlayer.com) (67.222.39.168) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Sat, 11 Jun 2016 02:42:18 +0000 Received: (qmail 12634 invoked by uid 0); 11 Jun 2016 02:42:16 -0000 Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy6.mail.unifiedlayer.com with SMTP; 11 Jun 2016 02:42:16 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id 5EiB1t00q2f2jeq01EiEWu; Fri, 10 Jun 2016 20:42:16 -0600 X-Authority-Analysis: v=2.1 cv=KpLehwmN c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=PnD2wP_eR3oA:10 a=7XZj0uCbPdcA:10 a=pD_ry4oyNxEA:10 a=zstS-IiYAAAA:8 a=IoNApvwvZOTIIyTsYlgA:9 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from [75.171.172.174] (port=42966 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bBYsF-0007Oc-Ib; Fri, 10 Jun 2016 20:42:11 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 2/3] Make gdbpy_parameter static Date: Fri, 10 Jun 2016 20:42:02 -0600 Message-Id: <1465612923-24880-3-git-send-email-tom@tromey.com> In-Reply-To: <1465612923-24880-1-git-send-email-tom@tromey.com> References: <1465612923-24880-1-git-send-email-tom@tromey.com> X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 75.171.172.174 authed with tom+tromey.com} X-Exim-ID: 1bBYsF-0007Oc-Ib X-Source-Sender: (bapiya.Home) [75.171.172.174]:42966 X-Source-Auth: tom+tromey.com X-Email-Count: 0 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== While working on the next patch in this series, I noticed that gdbpy_parameter did not need to be exported. This makes it "static". 2016-06-09 Tom Tromey * python/python.c (gdbpy_parameter): Now static. * python/python-internal.h (gdbpy_parameter): Don't declare. --- gdb/ChangeLog | 5 +++++ gdb/python/python-internal.h | 1 - gdb/python/python.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 04609c0..a64977e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2016-06-09 Tom Tromey + * python/python.c (gdbpy_parameter): Now static. + * python/python-internal.h (gdbpy_parameter): Don't declare. + +2016-06-09 Tom Tromey + * jit.c (jit_reader_load_command, jit_reader_unload_command): Call reinit_frame_cache. diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 6a2619c..7eb9aa4 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -375,7 +375,6 @@ PyObject *gdbpy_create_ptid_object (ptid_t ptid); PyObject *gdbpy_selected_thread (PyObject *self, PyObject *args); PyObject *gdbpy_selected_inferior (PyObject *self, PyObject *args); PyObject *gdbpy_string_to_argv (PyObject *self, PyObject *args); -PyObject *gdbpy_parameter (PyObject *self, PyObject *args); PyObject *gdbpy_parameter_value (enum var_types type, void *var); char *gdbpy_parse_command_name (const char *name, struct cmd_list_element ***base_list, diff --git a/gdb/python/python.c b/gdb/python/python.c index 1f1fece..9c4ddda 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -553,7 +553,7 @@ gdbpy_parameter_value (enum var_types type, void *var) /* A Python function which returns a gdb parameter's value as a Python value. */ -PyObject * +static PyObject * gdbpy_parameter (PyObject *self, PyObject *args) { struct gdb_exception except = exception_none;