From patchwork Thu Apr 17 10:46:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Wingo X-Patchwork-Id: 598 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id EE6D736005B for ; Thu, 17 Apr 2014 03:47:35 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14314964) id 9AFA9119A14A; Thu, 17 Apr 2014 03:47:35 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx21.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-mx21.g.dreamhost.com (Postfix) with ESMTPS id 7647C1124A4A for ; Thu, 17 Apr 2014 03:47:35 -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:in-reply-to :references; q=dns; s=default; b=gDuKFD3/E9YR6SLEhIoCsZMAFWHUYVf gvcKWEouVo5gnaRThSerEJPrEebg8aWWvDDJ1N9wFNSLHJebMFYQtrdUHVOhyiy/ JBtVIZwZcQ2T9//n2cSBmWlueiX+OZY2QPfnEUZLre9ItfQYplvbosm26JFEk3jN sYuzmcW3/jQg= 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:in-reply-to :references; s=default; bh=FzGT/kqdjJ/s8iqo9WGRWl/+QVg=; b=o0CQ7 e39xcsX6Cw6giK4ftG2DhTNYJ/a7+lqNRJe3W9HPLC0WMqV1cPhDolLFqPxAI17n tVmYZnUGJSFmbx+G4LSefGQAa/gaL1MAARInoW+HSjsVfq4gp7r5sAqaq3WjK0RT GfDIx+RpdKqNm26mOzhkRn8fC7K923m8gc3Jlc= Received: (qmail 26487 invoked by alias); 17 Apr 2014 10:47:24 -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 26389 invoked by uid 89); 17 Apr 2014 10:47:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_NEUTRAL autolearn=no version=3.3.2 X-HELO: sasl.smtp.pobox.com Received: from a-pb-sasl-quonix.pobox.com (HELO sasl.smtp.pobox.com) (208.72.237.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Apr 2014 10:47:22 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0E6BAF03D; Thu, 17 Apr 2014 06:47:21 -0400 (EDT) Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0720AF03C; Thu, 17 Apr 2014 06:47:21 -0400 (EDT) Received: from localhost.localdomain (unknown [88.160.190.192]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 25D9EF03A; Thu, 17 Apr 2014 06:47:18 -0400 (EDT) From: Andy Wingo To: gdb-patches@sourceware.org Cc: Andy Wingo Subject: [PATCH v2 3/9] Fix excess parentheses in Guile extension examples. Date: Thu, 17 Apr 2014 12:46:22 +0200 Message-Id: <1397731588-23750-4-git-send-email-wingo@igalia.com> In-Reply-To: <1397731588-23750-1-git-send-email-wingo@igalia.com> References: <1397731588-23750-1-git-send-email-wingo@igalia.com> X-Pobox-Relay-ID: A6142BC4-C61D-11E3-9CDF-873F0E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-DH-Original-To: gdb@patchwork.siddhesh.in gdb/doc/ChangeLog: * guile.texi (Writing a Guile Pretty-Printer) (Guile Types Module): Fix excess parentheses in use-modules forms. --- gdb/doc/ChangeLog | 6 ++++++ gdb/doc/guile.texi | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4b36f2c..87f4e06 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2014-04-17 Andy Wingo + + * guile.texi (Writing a Guile Pretty-Printer) + (Guile Types Module): Fix excess parentheses in use-modules + forms. + 2014-03-31 Doug Evans * gdb.texinfo (Symbols): Document set/show print symbol-loading. diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index 56d817e..7d4d098 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -1600,7 +1600,7 @@ To continue the @code{my::string} example, this code might appear in @code{(my-project my-library v1)}: @smallexample -(use-modules ((gdb))) +(use-modules (gdb)) (define (register-printers objfile) (append-objfile-pretty-printer! (make-pretty-printer "my-string" str-lookup-function))) @@ -1610,7 +1610,7 @@ this code might appear in @code{(my-project my-library v1)}: And then the corresponding contents of the auto-load file would be: @smallexample -(use-modules ((gdb) (my-project my-library v1))) +(use-modules (gdb) (my-project my-library v1)) (register-printers (current-objfile)) @end smallexample @@ -1661,7 +1661,7 @@ This example doesn't need a lookup function, that is handled by the the object that handles the lookup. @smallexample -(use-modules ((gdb printing))) +(use-modules (gdb printing)) (define (build-pretty-printer) (let ((pp (make-pretty-printer-collection "my-library"))) @@ -1673,7 +1673,7 @@ the object that handles the lookup. And here is the autoload support: @smallexample -(use-modules ((gdb) (my-library))) +(use-modules (gdb) (my-library)) (append-objfile-pretty-printer! (current-objfile) (build-pretty-printer)) @end smallexample @@ -3264,7 +3264,7 @@ Then in gdb: @smallexample (gdb) start -(gdb) guile (use-modules ((gdb) (gdb types))) +(gdb) guile (use-modules (gdb) (gdb types)) (gdb) guile (define foo-ref (parse-and-eval "foo_ref")) (gdb) guile (get-basic-type (value-type foo-ref)) int