mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
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.
This commit is contained in:
@ -617,7 +617,7 @@ enable_probes_command (const char *arg, int from_tty)
|
|||||||
{
|
{
|
||||||
std::string provider, probe_name, objname;
|
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
|
std::vector<bound_probe> probes
|
||||||
= collect_probes (objname, provider, probe_name, &any_static_probe_ops);
|
= 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;
|
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
|
std::vector<bound_probe> probes
|
||||||
= collect_probes (objname, provider, probe_name, &any_static_probe_ops);
|
= collect_probes (objname, provider, probe_name, &any_static_probe_ops);
|
||||||
|
Reference in New Issue
Block a user