From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8072 invoked by alias); 11 Apr 2003 05:23:48 -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 8053 invoked from network); 11 Apr 2003 05:23:47 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 11 Apr 2003 05:23:47 -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 h3B5Nle28105 for ; Fri, 11 Apr 2003 01:23:47 -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 h3B5NjW29268; Fri, 11 Apr 2003 01:23:46 -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 h3B5Nj512635; Thu, 10 Apr 2003 22:23:45 -0700 Message-ID: <3E965161.955869C7@redhat.com> Date: Fri, 11 Apr 2003 05:23:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: David Frager CC: gdb Subject: Re: Problems with gdb on Solaris 8 References: <20030403202605.7bac1421.dbfrager@attbi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00105.txt.bz2 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. > > # gdb ./MIBtest > GNU gdb 5.3 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "sparc-sun-solaris2.8"... > (gdb) l 'ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex(int, int, int, unsigned short, int)' > 211 ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex (key_t k, > 212 int flags, > 213 int initial_value, > 214 u_short nsems, > 215 int perms) > 216 { > 217 ACE_TRACE ("ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex"); > 218 if (this->open (k, flags, initial_value, nsems, perms) == -1) > 219 ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_SV_Semaphore_Complex")) > ); > 220 } > (gdb) b 218 > Breakpoint 1 at 0x133854: file SV_Semaphore_Complex.cpp, line 218. > (gdb) run > Starting program: /dfrager/MIBtest > Warning: > Cannot insert breakpoint 1. > Error accessing memory address 0x133854: I/O error. > The same program may be running in another process. > > --