From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26525 invoked by alias); 15 Jan 2014 13:12:41 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 26491 invoked by uid 55); 15 Jan 2014 13:12:40 -0000 From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/16113] gdb.Value needs a way to reference a superclass sub-object Date: Wed, 15 Jan 2014 13:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.7 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00060.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=16113 --- Comment #5 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, gdb-7.7-branch has been updated via 74e03f4a7024cf058b68999761f39df7e0606237 (commit) via 9316c9e157cd0e61380a65d26259ad6dec1907d4 (commit) via 2afbe22710d4c747cb5bec639cd1c2a699c17068 (commit) from f96d41e073bde8b376982228758e2d708777936d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=74e03f4a7024cf058b68999761f39df7e0606237 commit 74e03f4a7024cf058b68999761f39df7e0606237 Author: Joel Brobecker Date: Wed Jan 15 16:40:22 2014 +0400 Fix small style violation in py-value.c:get_field_type gdb/ChangeLog: * python/py-value.c (get_field_type): Remove unnecessary curly braces for single-statement if block. Tested on x86_64-linux. https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9316c9e157cd0e61380a65d26259ad6dec1907d4 commit 9316c9e157cd0e61380a65d26259ad6dec1907d4 Author: Joel Brobecker Date: Wed Jan 15 16:28:08 2014 +0400 Add missing empty line after declarations in "if" block (py-type.c). This patch fixes a small coding-style violation... gdb/ChangeLog: * python/py-type.c (convert_field): Add missing empty line after declarations. https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2afbe22710d4c747cb5bec639cd1c2a699c17068 commit 2afbe22710d4c747cb5bec639cd1c2a699c17068 Author: Siva Chandra Date: Fri Dec 27 12:20:59 2013 -0800 Use bitpos and type to lookup a gdb.Field object when its name is 'None'. PR python/15464 PR python/16113 * valops.c (value_struct_elt_bitpos): New function * py-type.c (convert_field): Set 'name' attribute of a gdb.Field object to 'None' if the field name is an empty string (""). * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type' attribute to look for a field when 'name' is 'None'. (get_field_type): New function testsuite/ * gdb.python/py-type.c: Enhance test case. * gdb.python/py-value-cc.cc: Likewise * gdb.python/py-type.exp: Add new tests. * gdb.python/py-value-cc.exp: Likewise ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 21 ++++++++ gdb/python/py-type.c | 16 +++++-- gdb/python/py-value.c | 78 ++++++++++++++++++++++++----- gdb/testsuite/ChangeLog | 9 ++++ gdb/testsuite/gdb.python/py-type.c | 9 ++++ gdb/testsuite/gdb.python/py-type.exp | 9 ++++ gdb/testsuite/gdb.python/py-value-cc.cc | 23 +++++++++ gdb/testsuite/gdb.python/py-value-cc.exp | 20 ++++++++ gdb/valops.c | 45 +++++++++++++++++ gdb/value.h | 5 ++ 10 files changed, 217 insertions(+), 18 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.