From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24177 invoked by alias); 30 Jun 2004 12:23:09 -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 24168 invoked from network); 30 Jun 2004 12:23:08 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 30 Jun 2004 12:23:08 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id HAA05427; Wed, 30 Jun 2004 07:43:52 -0400 Received: from [10.4.2.2] ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id IAA23418; Wed, 30 Jun 2004 08:23:07 -0400 Message-ID: <40E2B0FD.6050907@qnx.com> Date: Wed, 30 Jun 2004 13:28:00 -0000 From: Kris Warkentin User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) MIME-Version: 1.0 To: Roland Zerek CC: gdb@sources.redhat.com Subject: Re: Breakpoints in the library code References: <40E29098.4040207@poczta.fm> In-Reply-To: <40E29098.4040207@poczta.fm> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00295.txt.bz2 Once the dll is loaded (ie. you've run to main() or dlopen()ed), you can just set a breakpoint as you normally would. If gdb can find the shared library, it will read the symbols when it detects that it has been loaded. (if auto-solib-add is set) Newer versions of gdb also have the concept of a deferred breakpoint where gdb will ask if you want to make a breakpoint pending on a future library load. cheers, Kris Roland Zerek wrote: > Hi, > > I'm developing wxWidgets based applications on MinGW (gcc-3.4.0). And I > would like to set a breakpoint inside some method that is implemented in > the library (DLL). How do I do this? > > I am trying to use command line gdb currently since I see that a > frontend (MinGW Developer Studio) does not handle everything correctly > what makes debugging difficult or impossible. > > TIA >