Commit 854d8052 authored by hrchilds's avatar hrchilds
Browse files

Update from March 10, 2004

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@195 18c085ea-50e0-402c-830e-de6fd14e8384
parent 8be5005a
......@@ -1268,6 +1268,12 @@ PluginManager::PluginOpen(const string &pluginFile)
// Brad Whitlock, Thu Aug 21 14:14:40 PST 2003
// Added a special implementation for MacOS X.
//
// Brad Whitlock, Wed Mar 10 09:36:16 PDT 2004
// Added code to print the error message if the symbol could not be found.
// I did this here because most functions that call PluginSymbol use the
// return value to throw an exception without calling PluginError themselves.
// That prevents useful information from being printed to the debug logs.
//
// ****************************************************************************
void *
......@@ -1305,6 +1311,11 @@ PluginManager::PluginSymbol(const string &symbol)
#else
retval = dlsym(handle, symbol.c_str());
#endif
// If the symbol was not found, print the error message.
if(retval == 0)
debug4 << PluginError() << endl;
return retval;
}
......
#include <PDBFileObject.h>
#include <DebugStream.h>
#include <InvalidVariableException.h>
#if !defined(__APPLE__)
//
// Define some functions so if PDB was compiled with a weird non-g++ compiler,
// we still have symbols that we need in order to link.
......@@ -11,6 +13,7 @@ extern "C" void nonstandard_arithmetic(int) { }
extern "C" void __mth_i_dpowd(void) { }
extern "C" void __arg_reduce_(void) { }
extern "C" void __pgdbg_stub(void) { }
#endif
//
// Define functions to free memory.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment