From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27203 invoked by alias); 19 Feb 2003 21:42:16 -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 27194 invoked from network); 19 Feb 2003 21:42:16 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 19 Feb 2003 21:42:16 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h1JLgGK10980 for ; Wed, 19 Feb 2003 16:42:16 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h1JLgGa10336; Wed, 19 Feb 2003 16:42:16 -0500 Received: from localhost.localdomain (vpn50-1.rdu.redhat.com [172.16.50.1]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h1JLgFO16461; Wed, 19 Feb 2003 16:42:15 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h1JLg9Y00448; Wed, 19 Feb 2003 14:42:09 -0700 Date: Wed, 19 Feb 2003 21:42:00 -0000 From: Kevin Buettner Message-Id: <1030219214209.ZM447@localhost.localdomain> In-Reply-To: "Lev Assinovsky" "gdb + dynamic libs problem" (Feb 18, 2:08pm) References: <3F6F4712B759A34ABD453A8B39C10D62266475@bagman.edm.com> To: "Lev Assinovsky" , Subject: Re: gdb + dynamic libs problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-02/txt/msg00378.txt.bz2 On Feb 18, 2:08pm, Lev Assinovsky wrote: > I try to debug the application where dynamic objects > are loaded through user's dlopen explicit call. > The only way to set breakpoint in .so is to open source after > .so got loaded (I have to detect this moment myself). GDB can help you with this if you you do ``set stop-on-solib-events 1''. You'll probably want to do this well after your program has started though to avoid stopping every time one of the shared libraries specified on the link line gets loaded. > I perform source opening by issue the commands "shared library" and > "list :1". Have you disabled ``auto-solib-add''? If not, you shouldn't need to invoke the ``sharedlibrary'' command directly. I.e, gdb should automatically load the shared libraries for you (unless you've told it not to). > But if the source file is big gdb get crash. > It there any way to increase gdb resources to consume > larger files (symbol tables?) Which platform are you running on? On most platforms, gdb should be able to use whatever resources the operating system is able to give it. Thus, you may need to play around with ulimit, adjusting the amount of memory, swap space, etc. Kevin