aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-07-22 16:24:38 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-07-22 16:24:38 +0000
commit96d19272e879632a3659d2c0be755d9216994c47 (patch)
treedcbcb9da9963c416c771680880678916b5b82f24 /gdb
parentca1f3406ef61d91492b931f459eb6d783dc3679b (diff)
downloadgdb-96d19272e879632a3659d2c0be755d9216994c47.zip
gdb-96d19272e879632a3659d2c0be755d9216994c47.tar.gz
gdb-96d19272e879632a3659d2c0be755d9216994c47.tar.bz2
gdb/
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/dwarf2read.c12
2 files changed, 15 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 861f5b8..15bf0c8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+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
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3a24e9ff..0d63fe3 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -53,6 +53,7 @@
#include "psympriv.h"
#include "exceptions.h"
#include "gdb_stat.h"
+#include "completer.h"
#include <fcntl.h>
#include "gdb_string.h"
@@ -14135,7 +14136,7 @@ save_gdb_index_command (char *arg, int from_tty)
struct objfile *objfile;
if (!arg || !*arg)
- error (_("usage: maintenance save-gdb-index DIRECTORY"));
+ error (_("usage: save gdb-index DIRECTORY"));
ALL_OBJFILES (objfile)
{
@@ -14180,6 +14181,8 @@ void _initialize_dwarf2_read (void);
void
_initialize_dwarf2_read (void)
{
+ struct cmd_list_element *c;
+
dwarf2_objfile_data_key
= register_objfile_data_with_cleanup (NULL, dwarf2_per_objfile_free);
@@ -14228,7 +14231,8 @@ The value is the maximum depth to print."),
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);
}