> From: owner-openssl-us...@openssl.org On Behalf Of William A. Rowe Jr.
> Sent: Friday, 18 June, 2010 00:59

> On 6/17/2010 10:10 PM, Dave Thompson wrote:
(MSVC++ build)
> > 2. Even if you have symbols, I believe they use relative pathnames, 
> > and the IDE has to be told where to find them. In the old VS/VC++6 
> > I have, this is in Tools / Options / Directories / SourceFiles .
> > In newer versions it's probably different but should be similar.
> 
> More to the point, sources are never embedded into the 
> obj/dll/exe.  They
> must be distributed/available alongside a binary distribution 
> (not really
> a problem for open 'source' - heh).
> 
That latter part is true everywhere. Unix objects/executables 
with -g contain the linenumbers and name of the sourcefile(s), 
but not the actual source, and if you debug on a different system 
where the sourcefiles are not present, or on the same system but 
the sourcefiles have been deleted (or changed!) it won't work. 
If the sourcefiles are present but in a different location, 
some debuggers can be persuaded to find them.

However, for MS* there is another difference to know about:
the debug info goes in a separate PDB file -- e.g. libeay32.dll 
and libeay32.pdb -- and to debug you need BOTH, PLUS the source.
(* since about 2000; you might find some *really* old progams 
that don't have separate PDB, but good luck using them.)



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to