From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24100 invoked by alias); 11 Apr 2003 07:00:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24088 invoked from network); 11 Apr 2003 07:00:37 -0000 Received: from unknown (HELO beta.dmz-eu.st.com) (164.129.1.35) by sources.redhat.com with SMTP; 11 Apr 2003 07:00:37 -0000 Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 44BA1DA68 for ; Fri, 11 Apr 2003 07:00:36 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id 27020612A; Fri, 11 Apr 2003 07:00:36 +0000 (GMT) Received: from crx316.cro.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A96531845 for ; Fri, 11 Apr 2003 07:00:35 +0000 (GMT) Received: from crx1085 (crx1085.cro.st.com [164.129.46.185]) by crx316.cro.st.com (8.9.3 (PHNE_24419+JAGae58098)/8.9.3) with ESMTP id JAA05400 for ; Fri, 11 Apr 2003 09:04:24 +0200 (METDST) Subject: Re: Problems with gdb on Solaris 8 From: =?ISO-8859-1?Q?Fr=E9d=E9ric?= RISS To: gdb@sources.redhat.com In-Reply-To: <3E965161.955869C7@redhat.com> References: <20030403202605.7bac1421.dbfrager@attbi.com> <3E965161.955869C7@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Organization: STMicroelectronics - DAIS Message-Id: <1050044432.1761.7.camel@crx1085> Mime-Version: 1.0 Date: Fri, 11 Apr 2003 07:00:00 -0000 Content-Transfer-Encoding: 8bit X-SW-Source: 2003-04/txt/msg00107.txt.bz2 Hi, On Fri, 2003-04-11 at 07:23, msnyder@redhat.com wrote: > David Frager wrote: > > > > I have been experiencing problems with debugging programs on Solaris 8. > > > > The programs are compiled using g++ 3.2, and I am attempting to debug running gdb 5.3 > > Both my modules and the ACE library used by my modules are compiled with optimzation turned off and debug turned on. Additionally, the module is not striped. > > David, was the module built as a 64-bit app, or 32? > And likewise, how was gdb built? > > On Solaris, gdb can only debug 64-bit apps if it is itself one. > > > > > I have attempted to set other breakpoints, but I get the same results. > > I'm having some problems with gdb 5.2.1 on Solaris when I compile my applications with gcc 3.2. The symptoms are not the same as David's ones, but I think this may be related. Here's a more precise situation : gcc 3.2 with -g option => I can debug with gdb 5.0 without problem, but gdb5.2 is unusable (breakpoints put at the wrong place for the most) gcc 3.2 with -gdwarf-2 => I can debug with gdb 5.2 ! Unfortunately, I depend on libs which are compiled with -g, so I'm stuck debugging with gdb 5.0... Is this a known issue ? Is there any solution ? PS : We build only 32-bits libs/binaries and our GDBs are 32bits too. Regards, -- Frédéric RISS STMicroelectronics - DAIS