From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21493 invoked by alias); 3 Oct 2007 20:37:54 -0000 Received: (qmail 21484 invoked by uid 22791); 3 Oct 2007 20:37:54 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Oct 2007 20:37:49 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw1.br.ibm.com (Postfix) with ESMTP id C2E4432C37A for ; Wed, 3 Oct 2007 17:19:17 -0300 (BRT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l93KbhEH868382 for ; Wed, 3 Oct 2007 17:37:44 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l93KbhTs020347 for ; Wed, 3 Oct 2007 17:37:43 -0300 Received: from hactar.local ([9.18.238.251]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l93KbgEl020341; Wed, 3 Oct 2007 17:37:43 -0300 Subject: Re: Regarding shared library and GDB From: Thiago Jung Bauermann To: sunil Cc: gdb ml In-Reply-To: <1190876904.724372.33360@r29g2000hsg.googlegroups.com> References: <1190876904.724372.33360@r29g2000hsg.googlegroups.com> Content-Type: text/plain Date: Wed, 03 Oct 2007 20:37:00 -0000 Message-Id: <1191443859.5203.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit 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: 2007-10/txt/msg00035.txt.bz2 Hi, Changing the discussion to this mailing list since it seems more appropriate. On Thu, 2007-09-27 at 00:08 -0700, sunil wrote: > Am interested to debug one shared library using GDB.This shared > libarry is used by a binary (for which i doesn't have the code).I am > aware about at what point of time the library will be called. > Can i debug that library iusing GDB.If yes please let me know the > steps how to proceed further. If the library has debug information, you should be able to set a pending breakpoint on a function in the library. It will be resolved by GDB when it gets loaded by the binary. You don't need source code or debug information for the main program if all you are interested in is the library. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center