From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7394 invoked by alias); 4 Oct 2011 15:30:28 -0000 Received: (qmail 7383 invoked by uid 22791); 4 Oct 2011 15:30:26 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from qmta05.emeryville.ca.mail.comcast.net (HELO qmta05.emeryville.ca.mail.comcast.net) (76.96.30.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Oct 2011 15:30:12 +0000 Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta05.emeryville.ca.mail.comcast.net with comcast id geZk1h0021wfjNsA5fW5Vt; Tue, 04 Oct 2011 15:30:05 +0000 Received: from [10.127.238.91] ([65.206.2.68]) by omta23.emeryville.ca.mail.comcast.net with comcast id gfVH1h01U1U2a2h8jfVLZS; Tue, 04 Oct 2011 15:29:28 +0000 Subject: Re: [RFA] Re: Python: add field access by name and standard python mapping methods to gdb.Type Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Paul Koning In-Reply-To: Date: Tue, 04 Oct 2011 15:30:00 -0000 Cc: Doug Evans , gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <3A3AF5AE-70E8-43D0-B8CE-DCADFEEF879A@comcast.net> <560557F2-1B8B-4633-8CD6-E63705EEAF0E@comcast.net> To: Tom Tromey 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 X-SW-Source: 2011-10/txt/msg00083.txt.bz2 On Oct 4, 2011, at 11:13 AM, Tom Tromey wrote: >>>>>> "Paul" =3D=3D Paul Koning writes: >=20 > Paul> Thanks. Committed with these changelogs, same diff as previously m= ailed: >=20 > Paul> * doc/gdb.texinfo (gdb.Type): Document field access by dictionary > Paul> key syntax. >=20 > For future reference, there is a separate ChangeLog in doc. Entries for > documentation have to go there. I overlooked that file. Thanks for the reference. Should I move the entry= there? >=20 > Paul> 2011-09-28 Paul Koning > Paul> * gdb.python/py-type.c (enum E): New. > Paul> * gdb.python/py-type.exp (test_fields): Add tests for Python > Paul> mapping access to fields. > Paul> (test_enums): New test for field access on enums. >=20 > Could you write a NEWS entry for this change? How about this? paul 2011-10-04 Paul Koning * NEWS: Add entry for Python gdb.Type mapping methods. Index: NEWS =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/NEWS,v retrieving revision 1.453 diff -u -r1.453 NEWS --- NEWS 15 Sep 2011 12:27:18 -0000 1.453 +++ NEWS 4 Oct 2011 15:28:44 -0000 @@ -41,6 +41,11 @@ ** The "gdb.breakpoint" function has been deprecated in favor of "gdb.breakpoints". =20 + ** Type objects for struct and union types now allow access to + the fields using standard Python dictionary (mapping) methods. + For example, "some_type['myfield']" now works, as does + "some_type.items()". + * libthread-db-search-path now supports two special values: $sdir and $pdi= r. $sdir specifies the default system locations of shared libraries. $pdir specifies the directory where the libpthread used by the applicati= on