From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47957 invoked by alias); 17 Nov 2017 19:26:02 -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 47917 invoked by uid 89); 17 Nov 2017 19:26:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no version=3.3.2 spammy= X-HELO: gateway36.websitewelcome.com Received: from gateway36.websitewelcome.com (HELO gateway36.websitewelcome.com) (192.185.196.23) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Nov 2017 19:25:57 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 0FFC2400F7EA0 for ; Fri, 17 Nov 2017 13:25:49 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id FmGqe01Qzc72gFmGqevaW8; Fri, 17 Nov 2017 13:25:49 -0600 Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:56172 helo=pokyo.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eFmGq-001NLF-LV for gdb-patches@sourceware.org; Fri, 17 Nov 2017 13:25:48 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [RFA v2 0/3] Handle dereferencing Rust trait objects Date: Fri, 17 Nov 2017 19:26:00 -0000 Message-Id: <20171117192547.3515-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1eFmGq-001NLF-LV X-Source-Sender: 71-218-90-63.hlrn.qwest.net (pokyo.Home) [71.218.90.63]:56172 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2017-11/txt/msg00369.txt.bz2 This is version 2 of the patch for inspecting Rust trait objects. I think this version addresses the comments from the earlier version: * Use a std::vector rather than unordered_map -- note that a temporary set was needed to avoid temporarily making a gigantic vector in the libxul case. * Change a reinterpret_cast to a static_cast. * Use readelf to check the test's debuginfo before proceeding. I've also tacked on a couple of patches that we discussed; one to change the "subclass" information for struct symbol to use an enum, and one to change template_symbol to use derivation. Tested on x86-64 Fedora 25. Tom