From 11570e71895bb4e1f135b3b641af7862d2bebf82 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 1 Oct 2010 20:47:45 +0000 Subject: [PATCH] * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text for `save gdb-index' command. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ef516dcd0e..d11987228f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-10-01 Doug Evans + + * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text + for `save gdb-index' command. + 2010-10-01 Tom Tromey * symfile.h (allocate_symtab): Update. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 774f981b5bb..302f81ffd08 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -15368,6 +15368,7 @@ write_psymtabs_to_index (struct objfile *objfile, const char *dir) 6. The constant pool. This is simply a bunch of bytes. It is organized so that alignment is correct: CU vectors are stored first, followed by strings. */ + static void save_gdb_index_command (char *arg, int from_tty) { @@ -15470,7 +15471,9 @@ The value is the maximum depth to print."), &setdebuglist, &showdebuglist); c = add_cmd ("gdb-index", class_files, save_gdb_index_command, - _("Save a .gdb-index file"), + _("\ +Save a .gdb-index file.\n\ +Usage: save gdb-index DIRECTORY"), &save_cmdlist); set_cmd_completer (c, filename_completer); } -- 2.30.2