aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-dump.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-06-22 09:37:21 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-09-07 20:28:58 +0100
commitdc22ab49e9b9a5d55d6608f662f808c6427600c4 (patch)
treefac0c8fba8fed88ccdc8bb03b0c25aef7324a936 /gdb/cli/cli-dump.c
parent4076f962e8cd73219dfd48a6f682df1ab391c48c (diff)
downloadgdb-dc22ab49e9b9a5d55d6608f662f808c6427600c4.zip
gdb-dc22ab49e9b9a5d55d6608f662f808c6427600c4.tar.gz
gdb-dc22ab49e9b9a5d55d6608f662f808c6427600c4.tar.bz2
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.
Diffstat (limited to 'gdb/cli/cli-dump.c')
-rw-r--r--gdb/cli/cli-dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 9b44c6e..2b9307e 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -348,7 +348,7 @@ add_dump_command (const char *name,
struct dump_context *d;
c = add_cmd (name, all_commands, descr, &dump_cmdlist);
- c->completer = filename_completer;
+ set_cmd_completer (c, deprecated_filename_completer);
d = XNEW (struct dump_context);
d->func = func;
d->mode = FOPEN_WB;
@@ -356,7 +356,7 @@ add_dump_command (const char *name,
c->func = call_dump_func;
c = add_cmd (name, all_commands, descr, &append_cmdlist);
- c->completer = filename_completer;
+ set_cmd_completer (c, deprecated_filename_completer);
d = XNEW (struct dump_context);
d->func = func;
d->mode = FOPEN_AB;
@@ -705,6 +705,6 @@ Arguments are FILE OFFSET START END where all except FILE are optional.\n\
OFFSET will be added to the base address of the file (default zero).\n\
If START and END are given, only the file contents within that range\n\
(file relative) will be restored to target memory."));
- c->completer = filename_completer;
+ set_cmd_completer (c, deprecated_filename_completer);
/* FIXME: completers for other commands. */
}