Commit Graph

48 Commits

Author SHA1 Message Date
Axel Naumann
fd7790dc53 Use actual class name to make it easier to find the source of errors. 2014-04-16 17:41:08 +02:00
Bertrand Bellenot
ecd7f64941 Add missing cast from DyLibHandle (const void *) to HMODULE
This should fix the following compilation error on Windows:
error C2664: 'FreeLibrary' : cannot convert parameter 1 from 'cling::DynamicLibraryManager::DyLibHandle' to 'HMODULE'
2014-04-15 17:50:57 +02:00
Vassil Vassilev
f75cef233f Implement callbacks for the DynamicLibraryManager. 2014-04-14 20:58:15 +02:00
Vassil Vassilev
68a0a45eab Use normalized filenames. 2014-04-14 20:58:13 +02:00
Vassil Vassilev
362480a7c9 Revert unintentionally checked in code. 2014-04-14 13:57:57 +02:00
Vassil Vassilev
d4df15ee88 Fix windows. 2014-04-14 12:59:58 +02:00
Vassil Vassilev
f4d3356515 Use the canonical path. 2014-04-14 12:59:58 +02:00
Vassil Vassilev
9b353ee8a5 Normalize the file names. 2014-04-14 12:59:58 +02:00
Vassil Vassilev
bf1031a840 Fix error msg. 2014-04-14 12:59:57 +02:00
Vassil Vassilev
37e234c715 Name order. 2014-04-14 12:59:57 +02:00
Vassil Vassilev
c3eced298a Typo. 2014-04-14 11:15:00 +02:00
Vassil Vassilev
59c7b7b2d7 Coding convention. 2014-04-14 09:09:00 +02:00
Vassil Vassilev
6bb29c9130 Consistent argument names. 2014-04-14 09:09:00 +02:00
Vassil Vassilev
ebad01a510 Simplify and extend the dynamic library manager.
Now it provides an interface which can lookup library names. It can unload a
library and the implementation of loading and resolving a library name is much
simpler.

The extensions are greatly used by the unloading facilities in cling its users.
2014-04-14 09:09:00 +02:00
Vassil Vassilev
05c66f769b Style. 2014-04-09 11:19:00 +02:00
Vassil Vassilev
0314a15148 Shorten the unnecessary long interface name. 2014-04-09 11:19:00 +02:00
Vassil Vassilev
aa77258c9c Fix iterators.
Two things first the iterator wasn't considered to be empty.
Second the loop written such assumes chances to the collection
within the loop which is not the case.
2014-02-06 14:51:00 +01:00
Vassil Vassilev
5b43fdb334 Fix iterators.
Two things first the iterator wasn't considered to be empty.
Second the loop written such assumes chances to the collection
within the loop which is not the case.
2014-02-06 14:50:56 +01:00
Axel Naumann
0b6d047bb3 Prevent iteration past end() for empty SysPath. 2014-01-28 18:21:55 +01:00
Axel Naumann
44481ace1e Fix license; remove $Id$ version. 2014-01-07 11:14:04 +01:00
Bertrand Bellenot
4847c0f66d Fix potential issue on MacOSX 10.9 2013-12-20 09:31:53 +01:00
Bertrand Bellenot
7b360902ab Use hard-coded system library path on cygwin/gcc 2013-12-19 14:57:53 +01:00
Bertrand Bellenot
db577472e7 Typo 2013-12-18 16:38:57 +01:00
Bertrand Bellenot
2faaa27b0e Add previously removed code (for Apple only)
Since the recipe to query the system for its library search path doesn't work on MacOSX, keep the hard-coded path for the time being, until a proper solution is found
2013-12-18 16:38:57 +01:00
Bertrand Bellenot
d7fc31cf92 Fix Jira issue #ROOT-5858 (Missing library search path)
Solve the problem by asking the system its library search path (thanks Axel for the tip)
2013-12-18 14:08:54 +01:00
Bertrand Bellenot
c2e1c33726 Make ROOT working on cygwin again
Check for correct library files format on cygwin (fix loading libraries issue)
2013-12-04 16:01:04 +01:00
Bertrand Bellenot
96ed0c5f54 Implement several missing functions (for Windows) in DynamicLibraryManager and fix a couple of compilation errors on Windows 2013-12-04 11:03:08 +01:00
Bertrand Bellenot
90b6fa02dd Revert commit f3f6ca0fa1 (changes will be made in root instead) 2013-12-04 10:56:24 +01:00
Bertrand Bellenot
f3f6ca0fa1 Implement several missing functions (for Windows) in DynamicLibraryManager and fix a couple of compilation errors on Windows 2013-11-29 11:04:07 +01:00
Axel Naumann
67c0c9c344 From Bertrand: also find libs in ./ 2013-11-20 09:48:56 +01:00
Bertrand Bellenot
c5ef063462 Another attempt to fix a buffer overflow error on ubuntu (optimized mode only, making it hard to debug...) 2013-11-12 17:38:55 +01:00
Bertrand Bellenot
3c9b31be34 Use set_size so make sure the llvm::SmallString is not empty 2013-11-12 09:58:56 +01:00
Bertrand Bellenot
0f9145a1ae Revert previous changes and make sure the llvm::SmallString is not empty 2013-11-12 09:13:00 +01:00
Bertrand Bellenot
031f8be452 Use a llvm::SmallString instead of a char[] to avoid corrupting the stack (thanks Axel) 2013-11-11 20:40:10 +01:00
Bertrand Bellenot
738d8cb72c Fix compiler warning
Fix compiler warning: ignoring return value of ‘char* realpath(const char*, char*)’, declared with attribute warn_unused_result
And issue a warning if the canonical path cannot be obtained
2013-11-11 16:11:00 +01:00
Bertrand Bellenot
6e5d2f5a50 Fix compiler warning: unused variable ‘res’ 2013-11-11 15:15:59 +01:00
Bertrand Bellenot
d9f80eb51b Use canonicalized absolute pathname
This should fix Jira #ROOT-5636 Be more precise on whether a shared library was loaded
2013-11-11 12:19:59 +01:00
Axel Naumann
30d28d311d Remove misplaced and duplicate comment. 2013-11-08 17:26:55 +01:00
Axel Naumann
55e7b437a7 Var only used on Apple. 2013-10-17 12:38:55 +02:00
Axel Naumann
3f7a5feb79 On Mac, also look for dylibs. Fixes cling test suite. 2013-10-17 11:58:58 +02:00
Axel Naumann
c464f2c6fb Missing llvm:: from merge. 2013-09-26 17:54:20 +02:00
Axel Naumann
10c416332e We do not define LTDL_SHLIBPATH_VAR, just use LD_LIBRARY_PATH etc. 2013-09-26 17:54:20 +02:00
Axel Naumann
40aa591bb8 Use c_str() to enforce 0 termination. 2013-09-26 17:54:20 +02:00
Axel Naumann
c31806dbbf SmallString needs 0 termination. 2013-09-26 17:54:19 +02:00
Axel Naumann
68c8bb74e8 By Vassil: update to current llvm. 2013-09-26 17:54:19 +02:00
Axel Naumann
dee7f0ec21 DyLib without Path; now left with private Lex(), PP.LookupFile() vs SourceLoc. 2013-09-26 17:54:19 +02:00
Axel Naumann
954b089b2f More Path fixes, remove dupe headers. 2013-09-26 17:54:19 +02:00
Vassil Vassilev
f7a0987ac9 Move dynamic library handling in separate class. 2013-09-24 12:07:06 +02:00