delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/10/28/12:07:55

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
To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>, 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019