From patchwork Mon Nov 7 01:12:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 17239 Received: (qmail 59723 invoked by alias); 7 Nov 2016 01:12:51 -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 59712 invoked by uid 89); 7 Nov 2016 01:12:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:sk:94eb2c1, H*MI:google, H*MI:sk:94eb2c1, H*M:google X-HELO: mail-pf0-f202.google.com Received: from mail-pf0-f202.google.com (HELO mail-pf0-f202.google.com) (209.85.192.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Nov 2016 01:12:49 +0000 Received: by mail-pf0-f202.google.com with SMTP id f81so192575pfa.2 for ; Sun, 06 Nov 2016 17:12:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to; bh=84f6v+W5X03fbJy2Wy5v6KqeIilINCF0i1JFE5zeSjw=; b=iF8wmSBhUHHVWY/waCJYiGXOpEq3zpFiJoRzr+RMbCfArbdsHYhX2LsikiOHJFPJoh alge9V6Ra+BV+qud9STRrWsHR6JK/R2u4pD9CW+3yr3yLAQnHlhgvcjmJc5XhG19qlKd 3QI2rn3jwmupz9xIgexS+2t6Mlm7SZo8y5JrJB+ZiNcLszsaVLG09w4oxsKXie9qocQG A+TdMPeaREO2ck98TLf02rYVt4xCoHsZUsJfDZYh89oAYVQi6lMVxWfvt53MQgMacdVd 9taRl+z3qYvD7HIOMNzMp6Cq8NoNeeoNWsp7+j49GhzB11oupk31iPTOFG3rkheQHJVm VBPg== X-Gm-Message-State: ABUngvcoItnl7fwHm6f1owz7/qFxNhKqPEB6aKNZqfbNIuNS4EfCaeSu7JrUgPXMT8BWZMkIYMqgqSpoAsIbBslsobU3vkD0CA/dUmAZ9ZWPQOzqIMwhFxcFjVhQZve4wCi2KSTkmvq/pL56CYP5WDK7pol9cad3W7/qB/S7WLBXNrijIZN83g== MIME-Version: 1.0 X-Received: by 10.98.59.146 with SMTP id w18mr1465105pfj.2.1478481167982; Sun, 06 Nov 2016 17:12:47 -0800 (PST) Message-ID: <94eb2c1131b4d391aa0540abb830@google.com> Date: Mon, 07 Nov 2016 01:12:48 +0000 Subject: [PATCH 1/4] Fix some aspects of python lazy string handling: docs From: Doug Evans To: gdb-patches@sourceware.org, eliz@gnu.org, pmuldoon@redhat.com X-IsSubscribed: yes Hi. This patch is a small doc fix to note that arrays can be turned into lazy strings as well as pointers. 2016-11-06 Doug Evans * guile.texi (Lazy Strings In Guile): Mention arrays. * python.texi (Lazy Strings In Python): Ditto. diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index 0030f3f..65bc008 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -3248,7 +3248,7 @@ most appropriate encoding when the string is printed. @deffn {Scheme Procedure} lazy-string-type lazy-string Return the type that is represented by @var{lazy-string}'s type. -For a lazy string this will always be a pointer type. To +For a lazy string this is a pointer or array type. To resolve this to the lazy string's character type, use @code{type-target-type}. @xref{Types In Guile}. @end deffn diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index d6507e5..834247c 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -4884,7 +4884,7 @@ is not writable. @defvar LazyString.type This attribute holds the type that is represented by the lazy string's -type. For a lazy string this will always be a pointer type. To +type. For a lazy string this is a pointer or array type. To resolve this to the lazy string's character type, use the type's @code{target} method. @xref{Types In Python}. This attribute is not writable.