diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-13 08:58:50 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-12-13 08:58:50 -0700 |
commit | 41daaea2ccaef06fdb648e7f2a3095d8feac2aa5 (patch) | |
tree | 119c6ac27c76b4d745b7404c3a169f4fa1ba281f /gdb/probe.c | |
parent | dc3fb44540b586c02ec2f841e106a8d2cc2a422d (diff) | |
download | fsf-binutils-gdb-41daaea2ccaef06fdb648e7f2a3095d8feac2aa5.zip fsf-binutils-gdb-41daaea2ccaef06fdb648e7f2a3095d8feac2aa5.tar.gz fsf-binutils-gdb-41daaea2ccaef06fdb648e7f2a3095d8feac2aa5.tar.bz2 |
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.
Diffstat (limited to 'gdb/probe.c')
-rw-r--r-- | gdb/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/probe.c b/gdb/probe.c index ec88452..4193f9f 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<bound_probe> 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<bound_probe> probes = collect_probes (objname, provider, probe_name, &any_static_probe_ops); |