From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18971 invoked by alias); 3 Sep 2008 14:36:40 -0000 Received: (qmail 18963 invoked by uid 22791); 3 Sep 2008 14:36:40 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Sep 2008 14:36:01 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 4F5F62A96B2; Wed, 3 Sep 2008 10:35:59 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DtAmXfpJs85D; Wed, 3 Sep 2008 10:35:59 -0400 (EDT) Received: from [127.0.0.1] (nile.gnat.com [205.232.38.5]) by rock.gnat.com (Postfix) with ESMTP id 20CCC2A96A9; Wed, 3 Sep 2008 10:35:59 -0400 (EDT) Message-ID: <48BEA0CB.6040907@adacore.com> Date: Wed, 03 Sep 2008 14:36:00 -0000 From: Robert Dewar User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: "Frank Ch. Eigler" CC: Michael Snyder , Joel Brobecker , "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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00020.txt.bz2 Frank Ch. Eigler wrote: > 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 Well sure, but demanding to be able to see every variable at every point is more than the minimum needed. To me the most critical thing would be to make sure that parameters never get lost in the back trace, or when there is a breakpoint on a function entry. That would go far enough. Then you have to worry about control flow issues, such as inlining and tail merging and that's also not easy.