gdb: fix help doc for "set index-cache enabled"

Message ID 20211123160943.447767-1-simon.marchi@efficios.com
State New
Headers show
Series
  • gdb: fix help doc for "set index-cache enabled"
Related show

Commit Message

Mike Frysinger via Gdb-patches Nov. 23, 2021, 4:09 p.m.
When implementing this command, I put "help doc" as a placeholder for
the help string, and forgot to update it.  Change it for a real help
string.

Change-Id: Id23c2142c5073dc570bd8a706e9ec6fa8c40eb09
---
 gdb/dwarf2/index-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.26.2

Comments

Mike Frysinger via Gdb-patches Nov. 24, 2021, 4:25 p.m. | #1
* Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> [2021-11-23 11:09:43 -0500]:

> When implementing this command, I put "help doc" as a placeholder for

> the help string, and forgot to update it.  Change it for a real help

> string.


LGTM.

Thanks,
Andrew

> 

> Change-Id: Id23c2142c5073dc570bd8a706e9ec6fa8c40eb09

> ---

>  gdb/dwarf2/index-cache.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/gdb/dwarf2/index-cache.c b/gdb/dwarf2/index-cache.c

> index 06c27db306ff..7cb0fd3d9a1c 100644

> --- a/gdb/dwarf2/index-cache.c

> +++ b/gdb/dwarf2/index-cache.c

> @@ -360,7 +360,7 @@ _initialize_index_cache ()

>      = add_setshow_boolean_cmd ("enabled", class_files,

>  			       _("Enable the index cache."),

>  			       _("Show whether the index cache is enabled."),

> -			       _("help doc"),

> +			       _("When on, enable the use of the index cache."),

>  			       set_index_cache_enabled_command,

>  			       get_index_cache_enabled_command,

>  			       show_index_cache_enabled_command,

> -- 

> 2.26.2

>
Simon Marchi Nov. 24, 2021, 8:07 p.m. | #2
On 2021-11-24 11:25 a.m., Andrew Burgess via Gdb-patches wrote:
> * Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> [2021-11-23 11:09:43 -0500]:

> 

>> When implementing this command, I put "help doc" as a placeholder for

>> the help string, and forgot to update it.  Change it for a real help

>> string.

> 

> LGTM.

Thanks, pushed.

Simon

Patch

diff --git a/gdb/dwarf2/index-cache.c b/gdb/dwarf2/index-cache.c
index 06c27db306ff..7cb0fd3d9a1c 100644
--- a/gdb/dwarf2/index-cache.c
+++ b/gdb/dwarf2/index-cache.c
@@ -360,7 +360,7 @@  _initialize_index_cache ()
     = add_setshow_boolean_cmd ("enabled", class_files,
 			       _("Enable the index cache."),
 			       _("Show whether the index cache is enabled."),
-			       _("help doc"),
+			       _("When on, enable the use of the index cache."),
 			       set_index_cache_enabled_command,
 			       get_index_cache_enabled_command,
 			       show_index_cache_enabled_command,