From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60907 invoked by alias); 10 Nov 2016 22:20:11 -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 60681 invoked by uid 89); 10 Nov 2016 22:20:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1298, relatively, spots, translations X-HELO: gproxy9-pub.mail.unifiedlayer.com Received: from gproxy9-pub.mail.unifiedlayer.com (HELO gproxy9-pub.mail.unifiedlayer.com) (69.89.20.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Thu, 10 Nov 2016 22:19:59 +0000 Received: (qmail 4698 invoked by uid 0); 10 Nov 2016 22:19:57 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy9.mail.unifiedlayer.com with SMTP; 10 Nov 2016 22:19:57 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id 6NKt1u00n2f2jeq01NKw0t; Thu, 10 Nov 2016 15:19:57 -0700 X-Authority-Analysis: v=2.1 cv=fZg+lSgF c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=L24OOQBejmoA:10 a=1mHHI0U_90W-2KENA7QA:9 Received: from 174-16-143-211.hlrn.qwest.net ([174.16.143.211]:60120 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_1) (envelope-from ) id 1c4xhJ-0002sd-DL for gdb-patches@sourceware.org; Thu, 10 Nov 2016 15:19:53 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [RFA 00/20] more use of C++ in the Python layer Date: Thu, 10 Nov 2016 22:20:00 -0000 Message-Id: <1478816387-27064-1-git-send-email-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1c4xhJ-0002sd-DL X-Source-Sender: 174-16-143-211.hlrn.qwest.net (bapiya.Home) [174.16.143.211]:60120 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-SW-Source: 2016-11/txt/msg00257.txt.bz2 This patch series removes many more cleanups from the Python layer. It mostly replaces ensure_python_env, but also fixes a few spots that were missing in the earlier series. You may also want to take notice of the htab_up patch, which adds a unique_ptr typedef for managing libiberty hash tables. These patches require my earlier gdbpy_reference series. I split this series up quite a bit to ease review. The earlier patches are all relatively straightforward translations. Later patches involve multiple changes in a function: if a function used ensure_python_env and also had other cleanups (specifically Python-related ones), I've tried to transform the entire function at once, to avoid any ordering possible issues. A few uses of ensure_python_env remain after this series. I will address them later. My end goal is to remove all cleanups from the Python layer, and ideally all the goto-based control flow as well; this isn't totally achievable until much of the rest of gdb has moved away from cleanups, but it's certainly possible to get close. I've built and tested this locally. I will run it through the buildbot as well -- long story, but I have to wait until one upstream patch lands to reset the baseline before I can do this. Tom