diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-28 23:54:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-28 23:54:47 +0000 |
commit | 6d6796c294ca6e9b7f83c295217817c4bf486031 (patch) | |
tree | f27184a6a2005dad1788bc0ab29f09ca7613a5f8 | |
parent | d298ac04a36042fd1b1ae3ae635cd5afcd5935b2 (diff) | |
download | libltdl-3.5.13.1.tar.gz libltdl-3.5.13.1.zip |
This greatly simplifies debugging TDE dynamically loaded plugins!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1261212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | ltdl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -616,6 +616,10 @@ sys_dl_open (loader_data, filename) if (!module) { + char *error; + if ((error = dlerror()) != NULL) { + printf ("The Trinity ltdl loader was unable to dlopen() the shared library '%s' : '%s'\n\r", filename, error); + } MUTEX_SETERROR (DLERROR (CANNOT_OPEN)); } |