From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28006 invoked by alias); 4 Sep 2008 18:13:19 -0000 Received: (qmail 27994 invoked by uid 22791); 4 Sep 2008 18:13:19 -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; Thu, 04 Sep 2008 18:12:43 +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 m84IBFOm013953; Thu, 4 Sep 2008 14:11:15 -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 m84IBDpo015803; Thu, 4 Sep 2008 14:11:13 -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 m84I9rXO009968; Thu, 4 Sep 2008 14:10:40 -0400 Received: from ton.toronto.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 1B9E78001FF; Thu, 4 Sep 2008 14:09:37 -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 m84I9KHd017235; Thu, 4 Sep 2008 14:09:20 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id m84I9IMV017234; Thu, 4 Sep 2008 14:09:18 -0400 Date: Thu, 04 Sep 2008 18:13:00 -0000 From: "Frank Ch. Eigler" To: Eli Zaretskii Cc: Andreas Schwab , dewar@adacore.com, msnyder@vmware.com, brobecker@adacore.com, jreiver@free.fr, gdb@sourceware.org, Alexandre Oliva Subject: Re: how to examine data with compiler optimization option set? Message-ID: <20080904180918.GL19287@redhat.com> References: <48BDB1B0.4040703@adacore.com> <1220391632.48bdb2d04bfd7@imp.free.fr> <48BDB4E2.9010301@adacore.com> <20080902215623.GA3779@adacore.com> <48BDD4B7.5060503@vmware.com> <48BF04C6.8030108@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i 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/msg00031.txt.bz2 Hi - On Thu, Sep 04, 2008 at 06:55:15PM +0300, Eli Zaretskii wrote: > [...] > > If parameters are passed in registers they are very likely to get lost. > > Then the compiler should, under -ggdb, emit code and debug info that > allow GDB finding these parameters somewhere. And it should. > [...] I know _I_ would happily give up this optimization if I could > get back the lost ability of debugging reasonably well optimized > code. You shouldn't have to give up too much. gcc just needs to try harder. If you guys want to help provide some data & testing help, please check out Alex Oliva's var-tracking gcc branch. - FChE