From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21234 invoked by alias); 16 May 2002 22:48:02 -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 21213 invoked from network); 16 May 2002 22:47:56 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 16 May 2002 22:47:56 -0000 Received: from romulus.sfbay.redhat.com (remus.sfbay.redhat.com [172.16.27.252]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA05642; Thu, 16 May 2002 15:47:54 -0700 (PDT) Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g4GMlqg19910; Thu, 16 May 2002 15:47:52 -0700 Date: Thu, 16 May 2002 15:48:00 -0000 From: Kevin Buettner Message-Id: <1020516224752.ZM19909@localhost.localdomain> In-Reply-To: "Ed Harcourt" "stepping into a shared object" (May 16, 3:22pm) References: To: "Ed Harcourt" , gdb@sources.redhat.com Subject: Re: stepping into a shared object MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-05/txt/msg00205.txt.bz2 On May 16, 3:22pm, Ed Harcourt wrote: > I have a main.c compiled using the Solaris C compiler (not C++). Version is > Sun WorkShop 6 update 1 C 5.2 2000/09/11. > > I have C++ objects built using g++ 2.95.2. Everything built with -g. An > entry function f is extern "C". > > I linked the C++ objects and created a mylib.so using the Solaris linker ld. > > main does a dlopen to get at the mylib.so. I can't step into f from main. > > Sound familiar? Or should this work? It should work. Here are some things to try: 1) After the library is dlopen'd, are you able to place a breakpoint in the shared library and continue to the breakpoint? 2) Are you able to step into other types of shared libraries (i.e, ones that aren't dlopen'd? (This won't directly solve your problem, but knowing the answers might help us to figure out what's going wrong.) Kevin