gdb: deprecated filename_completer and associated functions

Following on from the previous commit, this commit marks the old
unquoted filename completion related functions as deprecated.

The aim of doing this is to make it more obvious to someone adding a
new command that they should not be using the older unquoted style
filename argument handling.

I split this change from the previous to make for an easier review.
This commit touches more files, but is _just_ function renaming.
Check out gdb/completer.{c,h} for what has been renamed.  All the
other files have just been updated to use the new names.

There should be no user visible changes after this commit.
This commit is contained in:
Andrew Burgess
2024-06-22 09:37:21 +01:00
parent 4076f962e8
commit dc22ab49e9
23 changed files with 62 additions and 59 deletions

View File

@@ -866,7 +866,7 @@ add_setshow_filename_cmd (const char *name, enum command_class theclass,
nullptr, nullptr, set_func,
show_func, set_list, show_list);
set_cmd_completer (commands.set, filename_completer);
set_cmd_completer (commands.set, deprecated_filename_completer);
return commands;
}
@@ -890,7 +890,7 @@ add_setshow_filename_cmd (const char *name, command_class theclass,
nullptr, show_func, set_list,
show_list);
set_cmd_completer (cmds.set, filename_completer);
set_cmd_completer (cmds.set, deprecated_filename_completer);
return cmds;
}
@@ -1015,7 +1015,7 @@ add_setshow_optional_filename_cmd (const char *name, enum command_class theclass
nullptr, nullptr, set_func, show_func,
set_list, show_list);
set_cmd_completer (commands.set, filename_completer);
set_cmd_completer (commands.set, deprecated_filename_completer);
return commands;
}
@@ -1039,7 +1039,7 @@ add_setshow_optional_filename_cmd (const char *name, command_class theclass,
set_func, get_func, nullptr, show_func,
set_list,show_list);
set_cmd_completer (cmds.set, filename_completer);
set_cmd_completer (cmds.set, deprecated_filename_completer);
return cmds;
}