From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26484 invoked by alias); 29 Apr 2014 15:36:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 26463 invoked by uid 89); 29 Apr 2014 15:36:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 Apr 2014 15:36:38 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3TFabWB018032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 29 Apr 2014 11:36:37 -0400 Received: from barimba.redhat.com (ovpn-113-185.phx2.redhat.com [10.3.113.185]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3TFaaw0029215; Tue, 29 Apr 2014 11:36:36 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] rename "set debugvarobj" to "set debug varobj" Date: Tue, 29 Apr 2014 15:36:00 -0000 Message-Id: <1398785790-2059-1-git-send-email-tromey@redhat.com> X-SW-Source: 2014-04/txt/msg00618.txt.bz2 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 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and "show debug varobj". 2014-04-29 Tom Tromey * 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(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 9d91075..623a954 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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 diff --git a/gdb/varobj.c b/gdb/varobj.c index 10ef5b7..eab6030 100644 --- a/gdb/varobj.c +++ 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; 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 -- 1.9.0