From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12640 invoked by alias); 1 Jun 2011 11:09:45 -0000 Received: (qmail 12629 invoked by uid 22791); 1 Jun 2011 11:09:44 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jun 2011 11:09:31 +0000 Received: by wwf26 with SMTP id 26so5361434wwf.8 for ; Wed, 01 Jun 2011 04:09:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.221.200 with SMTP id r50mr7374098wep.102.1306926570453; Wed, 01 Jun 2011 04:09:30 -0700 (PDT) Received: by 10.216.2.138 with HTTP; Wed, 1 Jun 2011 04:09:30 -0700 (PDT) Date: Wed, 01 Jun 2011 11:09:00 -0000 Message-ID: Subject: dwarf2 error From: naga raj To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00010.txt.bz2 Hi, I have ported Gcc-4.6 to an embedded target. I have made dwarf2 debugging information as default. My error is that my GDB is unable to display local variables of main function in one of my application program. It is giving error as -------> Could not find the frame base for "main". But it has all the frame information correctly and backtrace command in gdb is also working fine. The same application program is displaying local variables with Dwarf3 debugging information. I have debugged it an came to know that my GCC generating wrong loc_ptr address so as a result it is generating that error print statement. Is it a bug or my assumption is wrong?? Thanks in advance, Nagaraju