From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25216 invoked by alias); 12 Apr 2003 19:47:34 -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 25209 invoked from network); 12 Apr 2003 19:47:34 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 12 Apr 2003 19:47:34 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3CJlXD05063 for ; Sat, 12 Apr 2003 15:47:34 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3CJlXW30329; Sat, 12 Apr 2003 15:47:33 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h3CJlWS31158; Sat, 12 Apr 2003 12:47:32 -0700 Message-ID: <3E986D54.729AD7B2@redhat.com> Date: Sat, 12 Apr 2003 19:47:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?Fr=E9d=E9ric?= RISS CC: gdb@sources.redhat.com Subject: Re: Problems with gdb on Solaris 8 References: <20030403202605.7bac1421.dbfrager@attbi.com> <3E965161.955869C7@redhat.com> <1050044432.1761.7.camel@crx1085> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2003-04/txt/msg00121.txt.bz2 Frédéric RISS wrote: > > 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 It's not familiar to me, but sounds like a STABS problem. I'm not really up on my recent version history.