From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10417 invoked by alias); 3 May 2012 06:50:05 -0000 Received: (qmail 10386 invoked by uid 22791); 3 May 2012 06:50:03 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 06:49:48 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q436nkfB011406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 May 2012 02:49:46 -0400 Received: from psique (ovpn-112-58.phx2.redhat.com [10.3.112.58]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q436ng46023547; Thu, 3 May 2012 02:49:44 -0400 From: Sergio Durigan Junior To: Tomasz Grobelny Cc: Subject: Re: sun compiler and gdb References: <25b0084e43f4d35410c8dff55a3be61d@192.168.5.248> X-URL: http://www.redhat.com Date: Thu, 03 May 2012 06:50:00 -0000 In-Reply-To: <25b0084e43f4d35410c8dff55a3be61d@192.168.5.248> (Tomasz Grobelny's message of "Thu, 03 May 2012 05:23:24 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2012-05/txt/msg00005.txt.bz2 On Thursday, May 03 2012, Tomasz Grobelny wrote: > Hi all, > Should it be possible to debug C++ programs compiled using sun compiler > using GDB? If so which debug format should I use? Which versions of the > compiler/gdb support such a scenario? Currently the situation looks like > this (which does not look very promising): Indeed. In a quick search using Google, I found some links reporting that the compiler is kind of broken, probably when it comes to DWARF generation. Anyway, by reading this link: http://netbeans.org/bugzilla/show_bug.cgi?id=89876 especifically in comment #8, I saw that you can try enabling some options in your C++ compiler: -Qoption cg -h_gcc -xO0 -g Also, I saw that passing `-xs' to the compiler might help a bit. But overall, AFAIU, you don't have many options here, unfortunately. However, I'm definitely not an expert in the platform, so maybe someone more experienced will show up and help you further. Good luck. -- Sergio