+2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c: Include completer.h.
+ (save_gdb_index_command): Use matching usage command name.
+ (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
+ Set filename_completer for it.
+
2010-07-22 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (create_debug_types_hash_table): Set objfile on
#include "psympriv.h"
#include "exceptions.h"
#include "gdb_stat.h"
+#include "completer.h"
#include <fcntl.h>
#include "gdb_string.h"
struct objfile *objfile;
if (!arg || !*arg)
- error (_("usage: maintenance save-gdb-index DIRECTORY"));
+ error (_("usage: save gdb-index DIRECTORY"));
ALL_OBJFILES (objfile)
{
void
_initialize_dwarf2_read (void)
{
+ struct cmd_list_element *c;
+
dwarf2_objfile_data_key
= register_objfile_data_with_cleanup (NULL, dwarf2_per_objfile_free);
NULL,
&setdebuglist, &showdebuglist);
- add_cmd ("gdb-index", class_files, save_gdb_index_command,
- _("Save a .gdb-index file"),
- &save_cmdlist);
+ c = add_cmd ("gdb-index", class_files, save_gdb_index_command,
+ _("Save a .gdb-index file"),
+ &save_cmdlist);
+ set_cmd_completer (c, filename_completer);
}