From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43074 invoked by alias); 21 Sep 2017 12:47:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 43062 invoked by uid 89); 21 Sep 2017 12:47:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Sep 2017 12:47:40 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C5D894ACA5; Thu, 21 Sep 2017 12:47:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C5D894ACA5 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=sergiodj@redhat.com Received: from localhost (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E08660241; Thu, 21 Sep 2017 12:47:38 +0000 (UTC) From: Sergio Durigan Junior To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA 43/67] Constify some commands in probes.c References: <20170921051023.19023-1-tom@tromey.com> <20170921051023.19023-44-tom@tromey.com> Date: Thu, 21 Sep 2017 12:47:00 -0000 In-Reply-To: <20170921051023.19023-44-tom@tromey.com> (Tom Tromey's message of "Wed, 20 Sep 2017 23:09:59 -0600") Message-ID: <87lgl8kyl1.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00621.txt.bz2 On Thursday, September 21 2017, Tom Tromey wrote: > ChangeLog > 2017-09-20 Tom Tromey > > * probe.c (enable_probes_command, disable_probes_command): > Constify. This is OK. Thanks, > --- > gdb/ChangeLog | 5 +++++ > gdb/probe.c | 4 ++-- > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/gdb/probe.c b/gdb/probe.c > index f44d25d..c6435e4 100644 > --- a/gdb/probe.c > +++ b/gdb/probe.c > @@ -674,7 +674,7 @@ info_probes_command (char *arg, int from_tty) > /* Implementation of the `enable probes' command. */ > > static void > -enable_probes_command (char *arg, int from_tty) > +enable_probes_command (const char *arg, int from_tty) > { > std::string provider, probe_name, objname; > struct cleanup *cleanup = make_cleanup (null_cleanup, NULL); > @@ -713,7 +713,7 @@ enable_probes_command (char *arg, int from_tty) > /* Implementation of the `disable probes' command. */ > > static void > -disable_probes_command (char *arg, int from_tty) > +disable_probes_command (const char *arg, int from_tty) > { > std::string provider, probe_name, objname; > struct cleanup *cleanup = make_cleanup (null_cleanup, NULL); > -- > 2.9.4 -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/