From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4847 invoked by alias); 14 Jul 2008 18:13:07 -0000 Received: (qmail 4837 invoked by uid 22791); 14 Jul 2008 18:13:07 -0000 X-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Jul 2008 18:12:47 +0000 Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id m6EIBvro013701; Mon, 14 Jul 2008 19:11:57 +0100 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1216059117; bh=i2Xz4b21QCTdU1nIXTX5g9DNccU=; h=DomainKey-Signature:To:Cc:Subject:References:From:Date: In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type; b=Sh1 UuuiRS1eR2lTNDuCF3s8SM3A8bYNAsKXLao2vp8AjQu58aXtB45sfD2nhVz3BVCW9us 7WSPRPtH3c4ds4xQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:to:cc:subject:references:from:date:in-reply-to: message-id:user-agent:mime-version:content-type; b=RyBJmn5W0oPB2P+pJ2Afpo78w7kl3LxQoiNJH8pCacGSLFYFt98pz9mx+JuKuvf2B tc1MbqKKiim4fz0kvLnaQ== Received: from smtp.corp.google.com (spacemonkey3.corp.google.com [192.168.120.116]) by wpaz13.hot.corp.google.com with ESMTP id m6EIBtb0024322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Jul 2008 11:11:56 -0700 Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id m6EIBpqX007732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Jul 2008 11:11:52 -0700 To: Tom Tromey Cc: Daniel Jacobowitz , Frysk List Subject: Re: Roadmap beginnings References: <20080711215243.GA30836@caradoc.them.org> From: Ian Lance Taylor Date: Mon, 14 Jul 2008 18:13:00 -0000 In-Reply-To: (Tom Tromey's message of "Mon\, 14 Jul 2008 11\:35\:13 -0600") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00042.txt.bz2 Tom Tromey writes: > Ian> A related problem, which I don't know how to solve, is that many > Ian> simple C++ accessors get inlined, and are not available when > Ian> debugging. This makes it vastly more difficult to debug optimized C++ > Ian> programs (indeed, this problem is more serious for me in practice than > Ian> the debuginfo problems discussed at the summit). > > I have seen a few ideas kicked around: > > 1. Always emit the accessors out-of-line. > > 2. Emit DWARF code corresponding to the accessors. > > 3. Write Python code equivalent to the accessors and arrange for the > debugger to invoke it in the appropriate situations. > > #1 seems like the obvious choice, aside from code size problems. Are > those severe? Not for me. I suppose this would be yet another compiler debugging option. Python code would be sort of a last resort here, since it presumably only works for standard classes, not for the classes I define myself. I do write my own iterators. Ian