This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 43/67] Constify some commands in probes.c
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 21 Sep 2017 08:47:38 -0400
- Subject: Re: [RFA 43/67] Constify some commands in probes.c
- Authentication-results: sourceware.org; auth=none
- 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 at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C5D894ACA5
- References: <20170921051023.19023-1-tom@tromey.com> <20170921051023.19023-44-tom@tromey.com>
On Thursday, September 21 2017, Tom Tromey wrote:
> ChangeLog
> 2017-09-20 Tom Tromey <tom@tromey.com>
>
> * 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/