From patchwork Tue Jan 20 23:03:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 4742 Received: (qmail 18784 invoked by alias); 20 Jan 2015 23:03:11 -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 18764 invoked by uid 89); 20 Jan 2015 23:03:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-pd0-f202.google.com Received: from mail-pd0-f202.google.com (HELO mail-pd0-f202.google.com) (209.85.192.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 20 Jan 2015 23:03:09 +0000 Received: by mail-pd0-f202.google.com with SMTP id v10so1885759pde.1 for ; Tue, 20 Jan 2015 15:03:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=Tnzn6mt+lfaebYdH7H+hgQaSDvY5YYEX8PjdNILTrxc=; b=gtcydAqWADDxCvwBzp03ZtZALzoTIYeR1UXd9zC7H+1EPZu4ho9WHFs2f3zWcPE5qJ vh42mQOOpoCiGCWS0gS4pHx7cbBC/uXxcDFuSxMh1oo1U/rAVsFS0Ws++TbmCGJ9BveO h/dzizJgs+jIuP1v7FPfsj5SUHLWcCiSVixE0QO9KS3xuMAUXohXS3bkjBoq2H2G3CbQ 3c5ITv2w1F4ntdBGLQOIKwMPAgsVdXupMG6pYN5GN6m1MFDdXw2m5fQ3SgUAGtroD5XL 0UOG+HkjARPAcIOno6edbLDh2x7pA9SVdtPppTQCWAVyNgYfBDAk+3qdTSYN9ppSZ3PS Ntvg== X-Gm-Message-State: ALoCoQkzffyCwIPPBegITTHYGSg6VcOvD+Kl2ZGkVlfC3A1CCkwms1psGsAL5uICY7lxo5H/SU++ X-Received: by 10.66.156.227 with SMTP id wh3mr6688717pab.23.1421794987333; Tue, 20 Jan 2015 15:03:07 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id v10si295812qcd.1.2015.01.20.15.03.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 15:03:07 -0800 (PST) Received: from ruffy.mtv.corp.google.com ([172.17.128.44]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTPS id Z9hEgv92.1; Tue, 20 Jan 2015 15:03:07 -0800 From: Doug Evans To: gdb-patches@sourceware.org, eliz@gnu.org Subject: [PATCH 1/2] Add objfile.username: improve docs for Objfile.filename Date: Tue, 20 Jan 2015 15:03:06 -0800 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. I have a need to expose objfile->original_name to python. In order to do that I need to tweak the docs for Objfile.filename to distinguish how it's different. 2015-01-20 Doug Evans * python.texi (Objfiles In Python) : Improve docs. * guile.texi (Objfiles In Guile) : Improve docs. diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index 8355d9f..53e69f2 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -2246,7 +2246,8 @@ if it is invalid at the time the procedure is called. @end deffn @deffn {Scheme Procedure} objfile-filename objfile -Return the file name of @var{objfile} as a string. +Return the file name of @var{objfile} as a string, +with symbolic links resolved. @end deffn @deffn {Scheme Procedure} objfile-pretty-printers objfile diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index b9a50d0..ba03841 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -3513,7 +3513,10 @@ Each objfile is represented by an instance of the @code{gdb.Objfile} class. @defvar Objfile.filename -The file name of the objfile as a string. +The file name of the objfile as a string, with symbolic links resolved. + +The value is @code{None} if the objfile is no longer valid. +See the @code{gdb.Objfile.is_valid} method, described below. @end defvar @defvar Objfile.owner