comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: GNAT Ada - DLL - MSVC - debugging
Date: 11 Jun 2002 14:34:17 -0400
Date: 2002-06-11T18:41:34+00:00	[thread overview]
Message-ID: <u1ybdoeae.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: mailman.1023801422.8774.comp.lang.ada@ada.eu.org

"Alderson, Paul A." <Paul.Alderson@avistainc.com> 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



  parent reply	other threads:[~2002-06-11 18:34 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-11 13:15 GNAT Ada - DLL - MSVC - debugging Alderson, Paul A.
2002-06-11 17:12 ` David Marceau
2002-06-12 13:39   ` Why write an Ada web browser ?, was: Re: GNAT Ada - DLL - MSVC Simon Clubley
2002-06-12 15:00     ` David Marceau
2002-06-12 15:55       ` Darren New
2002-06-12 18:54         ` David Marceau
2002-06-12 19:30           ` Darren New
2002-06-12 22:24             ` David Marceau
2002-06-12 22:55           ` BraveNewWhirl
2002-06-12 23:47             ` David Marceau
2002-06-13 21:45               ` BraveNewWhirl
2002-06-12 20:01         ` Randy Brukardt
2002-06-12 20:21           ` Darren New
2002-06-12 21:20           ` Larry Kilgallen
2002-06-13 14:51             ` OT: Adobe Acrobat Plugin Frank J. Lhota
2002-06-13 16:03               ` Larry Kilgallen
2002-06-13 16:24               ` Warren W. Gay VE3WWG
2002-06-13 18:42               ` Ted Dennison
2002-06-12 20:41       ` Why write an Ada web browser ?, was: Re: GNAT Ada - DLL - MSVC Simon Clubley
2002-06-19  9:48         ` Preben Randhol
2002-06-12 19:54     ` Jeffrey Carter
2002-06-12 20:44       ` Hyman Rosen
2002-06-13 15:50       ` Ted Dennison
2002-06-13 16:00         ` Ed Falis
2002-06-14  2:36           ` Ted Dennison
2002-06-19  9:48       ` Preben Randhol
2002-06-19 15:08         ` David Marceau
2002-06-11 18:34 ` Stephen Leake [this message]
2002-06-11 19:04   ` GNAT Ada - DLL - MSVC - debugging Pascal Obry
2002-06-12 17:28     ` Stephen Leake
2002-06-12  1:37 ` SteveD
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox