X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: From: Mike Marchywka To: Subject: MS or cygwin dll debug tools/ was "sys/sockio.h" etc. Date: Wed, 28 May 2008 10:15:05 -0400 In-Reply-To: References: <17275355 DOT post AT talk DOT nabble DOT com> <17290164 DOT post AT talk DOT nabble DOT com> <4830F08D DOT 6040505 AT cygwin DOT com> <17345729 DOT post AT talk DOT nabble DOT com> <4833813A DOT 7B6F7FAF AT dessent DOT net> <17405074 DOT post AT talk DOT nabble DOT com> <483583EE DOT 8030605 AT cygwin DOT com> <00e501c8bc1e$a44d0190$2708a8c0 AT CAM DOT ARTIMI DOT COM> <20080523000735 DOT GA23793 AT ednor DOT casa DOT cgf DOT cx> <483BBE3D DOT EDF663D3 AT dessent DOT net> Content-Type: text/plain; charset="Windows-1252" MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m4SEH2BB020855 Regarding recent comments on dll problems and understanding cygwin1.dll versus msvcrt, I was curious to know if anyone has used these ( free? ) MS tools or has comments on competing products? http://msdn.microsoft.com/en-us/library/cc267862.aspx http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx I thought I may be able to download a few pieces like some of the sysinternals products but AFAIK you now need to download 17MB and hope the msi doesn't do anything funny. It may be worth it but if there is a better alternative I'd like to try that first. Apparently gdb didn't let you do anything until getting to main() which is after the initial process loads but some of the pages for the above tools suggest you can examine loading. Also, fwiw, that glut program I cited earlier as an example of something that seems to work but that invokes msvcrt and cygwin1, is available here, http://www.spottext.com/marchywka/distroform.cfm?src=cygwindll but I will warn you that there is nothing ready for distribution and the pages are a bit confusing. I collected a bunch of works-in-progress and started to make them available as part of other work I was doing. I finally did determine that the streaming data viewer and molecule viewer uses for the glut program were in fact useful to me and tried to document some of the features but I'm not sure I will ever document or clean anything up to the point of being coherent. The glut program does not always seem to start up reliably on first invokation after a reboot and does have odd response to ctrl-C but otherwise seems fine ( I assumed this was an issue with opengl, not cygwin). Thanks. > From: marchywka AT hotmail DOT com > To: cygwin AT cygwin DOT com > Subject: RE: fate/resolution/location of things like "sys/sockio.h" > Date: Tue, 27 May 2008 07:03:55 -0400 > > >> Date: Tue, 27 May 2008 00:54:37 -0700 >> From: brian AT dessent DOT net >> Mike Marchywka wrote: >> >>> $ g++ nmapjunk.a libdnet-stripped/src/junkbin.a liblua/junkbin.a -Lnbase -lnbase -Lnsock/src -lnsock -Llibpcap -lpcap -liphlpapi -lws2_32 -lpcre -L. -lPacket >> >> I would not expect this to work in any case. Cygwin has no libpcap, so >> you must be using the native windows winpcap, which is not a Cygwin >> library (it's linked with MSVCRT.) >> > > I have winpcap for an earlier install of ShowTraffic which runs fine. The nmap download > comes with its own and getting everything consistent may be a problem but I can't > come up with a diagnostic that confirms death during packet.dll load. I guess that is > why I am more interested in diagnostic tools rather than expecting to find someone who > knows offhand how to link my c++ version of nmap :) > > Is there some simple way to get gdb to tell you what it was trying to do if it dies before getting > to main()? From what I could tell, you couldn't set a break point etc to diagnose the > CRT initialization stuff. As far as that goes, what tools are there for dumping object or "a" files? > > > Thanks. > > > > > Mike Marchywka > 586 Saint James Walk > Marietta GA 30067-7165 > 404-788-1216 (C)<- leave message > 989-348-4796 (P)<- emergency only > marchywka AT hotmail DOT com > Note: If I am asking for free stuff, I normally use for hobby/non-profit > information but may use in investment forums, public and private. > Please indicate any concerns if applicable. > Note: Hotmail is possibly blocking my mom's entire > ISP - try me on marchywka AT yahoo DOT com if no reply > here. Thanks. > > >> Date: Tue, 27 May 2008 00:54:37 -0700 >> From: brian AT dessent DOT net >> To: marchywka AT hotmail DOT com >> CC: cygwin AT cygwin DOT com >> Subject: Re: fate/resolution/location of things like "sys/sockio.h" >> >> Mike Marchywka wrote: >> >>> $ g++ nmapjunk.a libdnet-stripped/src/junkbin.a liblua/junkbin.a -Lnbase -lnbase -Lnsock/src -lnsock -Llibpcap -lpcap -liphlpapi -lws2_32 -lpcre -L. -lPacket >> >> I would not expect this to work in any case. Cygwin has no libpcap, so >> you must be using the native windows winpcap, which is not a Cygwin >> library (it's linked with MSVCRT.) >> >> Brian >> >> -- >> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >> Problem reports: http://cygwin.com/problems.html >> Documentation: http://cygwin.com/docs.html >> FAQ: http://cygwin.com/faq/ >> > > _________________________________________________________________ > Make every e-mail and IM count. Join the i’m Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ MakeCount > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > _________________________________________________________________ Make every e-mail and IM count. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ MakeCount -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/