This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Re: Roadmap beginnings
- From: Ian Lance Taylor <iant at google dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Daniel Jacobowitz <drow at false dot org>, Frysk List <frysk at sourceware dot org>
- Date: Mon, 14 Jul 2008 11:11:50 -0700
- Subject: Re: Roadmap beginnings
- 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==
- References: <m3bq14dwp3.fsf@fleche.redhat.com> <20080711215243.GA30836@caradoc.them.org> <m3hcas8lxv.fsf@fleche.redhat.com> <m3r69wz8n6.fsf@google.com> <m37ibo8j3i.fsf@fleche.redhat.com>
Tom Tromey <tromey@redhat.com> 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