From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2435 invoked by alias); 3 Sep 2008 03:06:39 -0000 Received: (qmail 2424 invoked by uid 22791); 3 Sep 2008 03:06:38 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Sep 2008 03:06:03 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m8335dEP028780; Tue, 2 Sep 2008 23:05:39 -0400 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8335dl7008905; Tue, 2 Sep 2008 23:05:39 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.yyz.redhat.com [10.15.16.9]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8334wbB019214; Tue, 2 Sep 2008 23:05:31 -0400 Received: from ton.toronto.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id D40B98001FF; Tue, 2 Sep 2008 23:04:41 -0400 (EDT) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id m8334PCK018088; Tue, 2 Sep 2008 23:04:25 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id m8334OMw018087; Tue, 2 Sep 2008 23:04:24 -0400 To: Michael Snyder Cc: Joel Brobecker , Robert Dewar , "jreiver@free.fr" , "gdb@sourceware.org" Subject: Re: how to examine data with compiler optimization option set? References: <1220390777.48bdaf79617dd@imp.free.fr> <48BDB1B0.4040703@adacore.com> <1220391632.48bdb2d04bfd7@imp.free.fr> <48BDB4E2.9010301@adacore.com> <20080902215623.GA3779@adacore.com> <48BDD4B7.5060503@vmware.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Wed, 03 Sep 2008 03:06:00 -0000 In-Reply-To: <48BDD4B7.5060503@vmware.com> (Michael Snyder's message of "Tue, 02 Sep 2008 17:05:11 -0700") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00017.txt.bz2 Michael Snyder writes: > [...] > I don't think there is any possibility whatsoever of > somehow generating location codes for the variables in > the example. > > Those values are simply not kept anywhere. GCC will replace > them all with the constant, "3". You might be surprised. Some RH engineers are working along these lines. Being able to debug (<=> probe/trace) optimized code is becoming more and more important, and gcc is slowly getting into the mood to help. - FChE