From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29502 invoked by alias); 28 Nov 2002 00:52:15 -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 29487 invoked from network); 28 Nov 2002 00:52:15 -0000 Received: from unknown (HELO redhat.com) (66.30.22.225) by sources.redhat.com with SMTP; 28 Nov 2002 00:52:15 -0000 Received: by redhat.com (Postfix, from userid 201) id D7DDE1B3CC; Wed, 27 Nov 2002 19:52:42 -0500 (EST) Date: Wed, 27 Nov 2002 16:52:00 -0000 From: Christopher Faylor To: gdb@sources.redhat.com Subject: Re: gdb and Dll Message-ID: <20021128005242.GB2696@redhat.com> Mail-Followup-To: gdb@sources.redhat.com References: <001301c295f5$461850c0$fe78a8c0@SOL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001301c295f5$461850c0$fe78a8c0@SOL> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00401.txt.bz2 On Wed, Nov 27, 2002 at 10:13:28AM +0100, Heiko Gerdau wrote: >Hi, > >i found quit a few questions about debugging relocatable dlls on >Windows, but no answers. Does that mean you can not debug dlls with gdb? I debug dlls all of the time. >I found the gdb command "dll-symbols" which seems to be made for this >purpose. But at least for me, using the mingw version of gdb 5.2.1, it >seems to have no effects. Is there anybody on this list who could give >me a hint or confirmation that is it not possible to debug dlls with >gdb. AFAIK, the "mingw version" is a modified, unsupported version of gdb. Certainly simple debugging of dlls with the cygwin version of gdb work ok, especially in the current cvs revision or, presumably, in the upcoming gdb 5.3. There is one long-standing "gotcha" in debugging dlls however. Currently you can only set breakpoints on line numbers not on symbol names if the dll is not loaded. That is you can't do: dll-symbols foo.dll bp foo You have to, instead do: dll-symbols foo.dll list foo bp cgf