From: "Tim Ward" <t...@brettward.co.uk>

Trying to follow that through the sources myself it doesn't make any sense to me - the BIO_s_file I've found, in bss_file.c, simply returns a pointer, it doesn't make any call to setmode or anything else. OK ... looking at the disassembly that's because there's something about the debug information that's confused VS2005, it's not actually BIO_s_file that's being called, it's several functions later, looks like file_ctrl. Why doesn't the debugger know about it? Has the debug build cleverly managed to run in a non-standard fashion that excludes static symbols? (- I remember compilers used to do that sort of thing in the 1970s). So, obviously, there's something seriously wrong with the debug build. As also witnessed by I can't trace into d2i_PKCS12_fp, which might have been helpful.

Ah! - that's because the instructions didn't include:

"Edit the generated ntdlldbg.mak file and add /Zi to the CFLAG line."

Not sure why anyone would have thought a debug build was useful without /Zi, but adding it actually lets me debug the debug build.

Tim Ward - Brett Ward Limited - 07801 703 600
www.brettward.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to