From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1943b1e68472411f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-11 11:43:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: GNAT Ada - DLL - MSVC - debugging Date: 11 Jun 2002 14:34:17 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1023820894 7717 128.183.220.71 (11 Jun 2002 18:41:34 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 11 Jun 2002 18:41:34 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:25755 Date: 2002-06-11T18:41:34+00:00 List-Id: "Alderson, Paul A." writes: > If you > know of a good example of accessing debug information from MSVC using an Ada > DLL I would appreciate hearing about it. I've done this kind of application, but with Borland C++. The short answer is "MSVC++ does not understand the GNAT debugging info in the DLL". So what you are asking for (using the MSVC debugger to step thru the Ada DLL) is not possible. I used Ada.Text_IO.Put_Line in my DLL when I really needed to see what was going on. Before that, I wrote really thorough unit tests for the Ada code; Ada test drivers let me use the GNAT debugger. You might try compiling the C++ code with the Gnu C++ compiler. Depending on how much Microsoft-specific stuff you've got, you'll have more or less success. That would give you uniform debug info. There ought to be a way to get the Gnu debugger to "attach" to the Ada DLL, but I don't know how to do that, or if it is indeed possible. -- -- Stephe