From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8364 invoked by alias); 3 Sep 2008 00:04:29 -0000 Received: (qmail 8349 invoked by uid 22791); 3 Sep 2008 00:04:29 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Sep 2008 00:03:54 +0000 Received: from mailhost5.vmware.com (mailhost5.vmware.com [10.16.68.131]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 663533400F; Tue, 2 Sep 2008 17:03:52 -0700 (PDT) Received: from [10.20.92.218] (promb-2s-dhcp218.eng.vmware.com [10.20.92.218]) by mailhost5.vmware.com (Postfix) with ESMTP id 5D0DDDC05C; Tue, 2 Sep 2008 17:03:52 -0700 (PDT) Message-ID: <48BDD466.5020400@vmware.com> Date: Wed, 03 Sep 2008 00:04:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "jreiver@free.fr" CC: Robert Dewar , "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> In-Reply-To: <1220391632.48bdb2d04bfd7@imp.free.fr> 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/msg00013.txt.bz2 jreiver@free.fr wrote: > Yes, I knew that the optimization option removes the visibility for a, b and c. > But GDB user manual seemed to say that you can still view them with providing > -gstabs or -gdwarf2 option, in addition to the -O[1|2|3] option you might want > to keep. What it means to say is that you MIGHT still be able to view them, if you happen to get lucky. It does not offer any guarantee.