rename "set debugvarobj" to "set debug varobj"
Commit Message
I think "set debugvarobj" has the wrong name.
It ought to be "set debug varobj", like gdb's other debug settings.
This patch makes the change.
I chose not to install deprecated aliases, since this is only a debug
setting; but if someone feels strongly about it I will add them.
Built and regtested on x86-64 Fedora 20.
2014-04-29 Tom Tromey <tromey@redhat.com>
* varobj.c (_initialize_varobj): Rename to "set debug varobj" and
"show debug varobj".
2014-04-29 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Debugging Output): Rename to "set debug varobj" and
"show debug varobj".
---
gdb/ChangeLog | 5 +++++
gdb/doc/ChangeLog | 5 +++++
gdb/doc/gdb.texinfo | 4 ++--
gdb/varobj.c | 5 +++--
4 files changed, 15 insertions(+), 4 deletions(-)
Comments
> From: Tom Tromey <tromey@redhat.com>
> Cc: Tom Tromey <tromey@redhat.com>
> Date: Tue, 29 Apr 2014 09:36:30 -0600
>
> I think "set debugvarobj" has the wrong name.
> It ought to be "set debug varobj", like gdb's other debug settings.
>
> This patch makes the change.
The documentation part is fine with me, thanks.
> I chose not to install deprecated aliases, since this is only a debug
> setting; but if someone feels strongly about it I will add them.
FWIW, that seems fine to me.
> 2014-04-29 Tom Tromey <tromey@redhat.com>
>
> * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
> "show debug varobj".
>
> 2014-04-29 Tom Tromey <tromey@redhat.com>
>
> * gdb.texinfo (Debugging Output): Rename to "set debug varobj" and
> "show debug varobj".
Thanks for doing that, Tom!
On 29/04/2014 4:36 PM, Tom Tromey wrote:
> +++ b/gdb/varobj.c
> @@ -2795,17 +2795,18 @@ void
> _initialize_varobj (void)
> {
> int sizeof_table = sizeof (struct vlist *) * VAROBJ_TABLE_SIZE;
> + struct cmd_list_element *c;
I don't think this extra line is needed.
Cheers,
Andrew
> varobj_table = xmalloc (sizeof_table);
> memset (varobj_table, 0, sizeof_table);
>
> - add_setshow_zuinteger_cmd ("debugvarobj", class_maintenance,
> + add_setshow_zuinteger_cmd ("varobj", class_maintenance,
> &varobjdebug,
> _("Set varobj debugging."),
> _("Show varobj debugging."),
> _("When non-zero, varobj debugging is enabled."),
> NULL, show_varobjdebug,
> - &setlist, &showlist);
> + &setdebuglist, &showdebuglist);
> }
>
> /* Invalidate varobj VAR if it is tied to locals and re-create it if it is
>
>> + struct cmd_list_element *c;
Andrew> I don't think this extra line is needed.
Thanks. I was considering adding the deprecated aliases and then
decided against it, but forgot to undo what I did.
Tom
@@ -22925,11 +22925,11 @@ message.
@item show debug timestamp
Displays the current state of displaying timestamps with @value{GDBN}
debugging info.
-@item set debugvarobj
+@item set debug varobj
@cindex variable object debugging info
Turns on or off display of @value{GDBN} variable object debugging
info. The default is off.
-@item show debugvarobj
+@item show debug varobj
Displays the current state of displaying @value{GDBN} variable object
debugging info.
@item set debug xml
@@ -2795,17 +2795,18 @@ void
_initialize_varobj (void)
{
int sizeof_table = sizeof (struct vlist *) * VAROBJ_TABLE_SIZE;
+ struct cmd_list_element *c;
varobj_table = xmalloc (sizeof_table);
memset (varobj_table, 0, sizeof_table);
- add_setshow_zuinteger_cmd ("debugvarobj", class_maintenance,
+ add_setshow_zuinteger_cmd ("varobj", class_maintenance,
&varobjdebug,
_("Set varobj debugging."),
_("Show varobj debugging."),
_("When non-zero, varobj debugging is enabled."),
NULL, show_varobjdebug,
- &setlist, &showlist);
+ &setdebuglist, &showdebuglist);
}
/* Invalidate varobj VAR if it is tied to locals and re-create it if it is