From: cgf AT cygnus DOT com (Christopher Faylor) Subject: Re: debugging cygwin DLL loaded by LoadLibrary?? 28 Oct 1998 12:07:55 -0800 Message-ID: <19981028145228.A16302.cygnus.cygwin32.developers@cygnus.com> References: <9810281913 DOT AA28806 AT modi DOT xraylith DOT wisc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Mumit Khan , cygwin32-developers AT cygnus DOT com On Wed, Oct 28, 1998 at 01:13:39PM -0600, Mumit Khan wrote: >How can I debug a DLL that is loaded by LoadLibrary?? I've tried all I can >think of (eg., setting breakpoint at ImageBase + SectionAlignment), but no >luck. The only thing that comes close is aborting somewhere in the >startup, that doesn't let me continue anymore of course. > >Essentially I want to track the DLL initialization starting from the entry >point, so ideally I'd like to stop at whataver entry point the DLL is >using. Don't know if this will work, but: gdb /wherever/cygwin1.dll exec-file prog b whatever r cgf