From: Tom Tromey Date: Tue, 13 Dec 2022 15:58:50 +0000 (-0700) Subject: Remove two unnecessary casts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41daaea2ccaef06fdb648e7f2a3095d8feac2aa5;p=binutils-gdb.git Remove two unnecessary casts A couple of calls to parse_probe_linespec had an unnecessary cast. I suspect this cast was never needed, but once commands were changed to take a 'const' argument, they became completely obsolete. Tested by rebuilding. --- diff --git a/gdb/probe.c b/gdb/probe.c index ec8845219fa..4193f9f936b 100644 --- a/gdb/probe.c +++ b/gdb/probe.c @@ -617,7 +617,7 @@ enable_probes_command (const char *arg, int from_tty) { std::string provider, probe_name, objname; - parse_probe_linespec ((const char *) arg, &provider, &probe_name, &objname); + parse_probe_linespec (arg, &provider, &probe_name, &objname); std::vector probes = collect_probes (objname, provider, probe_name, &any_static_probe_ops); @@ -652,7 +652,7 @@ disable_probes_command (const char *arg, int from_tty) { std::string provider, probe_name, objname; - parse_probe_linespec ((const char *) arg, &provider, &probe_name, &objname); + parse_probe_linespec (arg, &provider, &probe_name, &objname); std::vector probes = collect_probes (objname, provider, probe_name, &any_static_probe_ops);