From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18470 invoked by alias); 9 Nov 2016 23:07:56 -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 18443 invoked by uid 89); 9 Nov 2016 23:07:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=rust X-HELO: gproxy10-pub.mail.unifiedlayer.com Received: from gproxy10-pub.mail.unifiedlayer.com (HELO gproxy10-pub.mail.unifiedlayer.com) (69.89.20.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Wed, 09 Nov 2016 23:07:48 +0000 Received: (qmail 4003 invoked by uid 0); 9 Nov 2016 23:07:47 -0000 Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy10.mail.unifiedlayer.com with SMTP; 9 Nov 2016 23:07:47 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id 5z791u00j2f2jeq01z7CEp; Wed, 09 Nov 2016 16:07:12 -0700 X-Authority-Analysis: v=2.1 cv=beT4Do/B 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=s68UjSXcIQnnHrm92kEA:9 Received: from 97-118-168-190.hlrn.qwest.net ([97.118.168.190]:42762 helo=bapiya.localdomain) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_1) (envelope-from ) id 1c4bxX-0005uE-13 for gdb-patches@sourceware.org; Wed, 09 Nov 2016 16:07:11 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [FYI 0/2] C++ in the Rust code Date: Wed, 09 Nov 2016 23:07:00 -0000 Message-Id: <1478732828-14454-1-git-send-email-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1c4bxX-0005uE-13 X-Source-Sender: 97-118-168-190.hlrn.qwest.net (bapiya.localdomain) [97.118.168.190]:42762 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-SW-Source: 2016-11/txt/msg00237.txt.bz2 This changes the Rust code to use a bit more C++. The first patch fixes a small memory leak. The second patch removes some cleanups in favor of objects with destructors. There are still some cleanups left, primarily due to the way memory is managed when parsing; but also a couple because other gdb modules haven't yet been converted (e.g., make_cleanup_ui_file_delete). Built and regtested by the buildbot. I plan to check this in after a suitable interval. Tom