From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18479 invoked by alias); 3 May 2012 03:23:42 -0000 Received: (qmail 18470 invoked by uid 22791); 3 May 2012 03:23:41 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from poczta.oswiecenia.net (HELO poczta.oswiecenia.net) (83.13.108.61) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 03:23:30 +0000 Received: from localhost (localhost [127.0.0.1]) by poczta.oswiecenia.net (Postfix) with ESMTP id 50F283BD592 for ; Thu, 3 May 2012 05:23:28 +0200 (CEST) Received: from poczta.oswiecenia.net ([127.0.0.1]) by localhost (poczta.oswiecenia.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MrYnL3Fc1uGh for ; Thu, 3 May 2012 05:23:25 +0200 (CEST) Received: from poczta.oswiecenia.net (unknown [192.168.5.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by poczta.oswiecenia.net (Postfix) with ESMTPSA id 595EC3BD535 for ; Thu, 3 May 2012 05:23:25 +0200 (CEST) MIME-Version: 1.0 Date: Thu, 03 May 2012 03:23:00 -0000 From: Tomasz Grobelny To: Subject: sun compiler and gdb Message-ID: <25b0084e43f4d35410c8dff55a3be61d@192.168.5.248> X-Sender: tomasz@grobelny.oswiecenia.net User-Agent: RoundCube Webmail/0.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 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/msg00004.txt.bz2 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): > /opt/solstudio12.2/bin/CC -V CC: Sun C++ 5.11 SunOS_i386 2010/08/13 usage: CC [ options ] files. Use 'CC -flags' for details > /opt/solstudio12.2/bin/CC -g -xdebugformat=dwarf test.cpp > gdb -q ./a.out Reading symbols from /full/path/to/my/a.out...done. (gdb) break fun Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x13b33 [in module /full/path/to/my/a.out] (gdb) break main Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at 0x13b33 [in module /full/path/to/my/a.out] (gdb) run Starting program: /full/path/to/my/a.out [Thread debugging using libthread_db enabled] hello world [Inferior 1 (process 9412 ) exited normally] (gdb) quit > uname -a SunOS solac1 5.10 Generic_137138-09 i86pc i386 i86pc > gdb version is 7.4.1 Any ideas what is wrong here? -- Regards, Tomasz Grobelny