From patchwork Tue Apr 29 15:36:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 747 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 3A5D6360075 for ; Tue, 29 Apr 2014 08:37:39 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14314964) id D2BBC509E800; Tue, 29 Apr 2014 08:37:38 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 8ED5F508C76F for ; Tue, 29 Apr 2014 08:37:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=JTnqFkWOZUk5n1yFBNpqhQl5DRP+1G8im0Na0NdZTiFiR0tUlKGbB vN/UD2KJVe81w5qe/6oebtcdC6Gf4qkm1ZSq5llBkIrkL5bapbxlHDE7QAdU+zIY TDOKYmR19Lxsuye1YJkBLsM/ZFcL9ytNwH7ft8RMPwg489gCs3Q51k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=OI1+SuF4OPhAkoYsixsvsi94iXM=; b=kknhu6fbDwbD2iWXBNBFMDp5RxKe iDIE7HuDqzgv52mpUjI2catxcFgttggGSfh3/JtqfYcRjMKFwoKZu55q0kEw231c mxYhSW8TF2LKdM0u/d81/G/UfY72EiI9HR2UPUBOFOpZ96JeqviXW3XWLnAswrKp vpMRF1Ca3ZFYKKY= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@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 09:36:30 -0600 Message-Id: <1398785790-2059-1-git-send-email-tromey@redhat.com> X-DH-Original-To: gdb@patchwork.siddhesh.in 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