From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13418 invoked by alias); 4 Mar 2014 10:37:22 -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 13368 invoked by uid 89); 4 Mar 2014 10:37:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=BAYES_00,KAM_STOCKGEN,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: satori.sandbox-dev.search.yandex.net Received: from satori.sandbox-dev.search.yandex.net (HELO satori.sandbox-dev.search.yandex.net) (5.255.204.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Mar 2014 10:37:20 +0000 Received: by satori.sandbox-dev.search.yandex.net (Postfix, from userid 30101) id 23298F40DF8; Tue, 4 Mar 2014 14:37:18 +0400 (MSK) From: Maxim Bublis To: gdb-patches@sourceware.org Cc: Maxim Bublis Subject: =?UTF-8?q?=5BPATCH=203/3=5D=20gdb/doc/python=2Etexi=3A=20documented=20gdb=2ESYMBOL=5FLOC=5FLABEL=2E=20Added=20notion=20on=20possible=20exception=20thrown=20from=20symbol=20object=20=2Evalue=28=29=20method?= Date: Tue, 04 Mar 2014 10:37:00 -0000 Message-Id: <1393929360-31299-4-git-send-email-satori@yandex-team.ru> In-Reply-To: <1393929360-31299-1-git-send-email-satori@yandex-team.ru> References: <1393929360-31299-1-git-send-email-satori@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2014-03/txt/msg00065.txt.bz2 --- gdb/doc/ChangeLog | 6 ++++++ gdb/doc/python.texi | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 47f5f38..2eec47f 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2014-03-04 Maxim Bublis + + * gdb/doc/python.texi (Symbols In Python): Document gdb.SYMBOL_LOC_LABEL + address class. Added notion on possible exception thrown from .value() + method with some address classes. + 2014-02-26 Ludovic Courtès * gdb/doc/guile.texi (Basic Guile): Document 'history-append!'. diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 90b7074..c3d49dc 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -3544,7 +3544,10 @@ functions, this computes the address of the function, cast to the appropriate type. If the symbol requires a frame in order to compute its value, then @var{frame} must be given. If @var{frame} is not given, or if @var{frame} is invalid, then this method will throw an -exception. +exception. For symbols with some address classes it is not possible +to compute value (eg. @code{gdb.SYMBOL_LOC_TYPEDEF} or +@code{gdb.SYMBOL_LOC_LABEL}), in this case exception will +be thrown. @end defun The available domain categories in @code{gdb.Symbol} are represented @@ -3632,6 +3635,10 @@ Value is a local variable. @item gdb.SYMBOL_LOC_TYPEDEF Value not used. Symbols in the domain @code{SYMBOL_STRUCT_DOMAIN} all have this class. +@findex SYMBOL_LOC_LABEL +@findex gdb.SYMBOL_LOC_LABEL +@item gdb.SYMBOL_LOC_LABEL +Value is address @code{SYMBOL_VALUE_ADDRESS} in the code. @findex SYMBOL_LOC_BLOCK @findex gdb.SYMBOL_LOC_BLOCK @item gdb.SYMBOL_LOC_BLOCK -- 1.7.9.5