Commit Graph

67 Commits

Author SHA1 Message Date
Bertrand Bellenot
ff885342b2 Fix CMake error with stand-alone cling
Use absolute PATH when checking the existance of the textinput directory. This prevent this error:

CMake Error at cmake/modules/AddLLVM.cmake:312 (add_library):
  Cannot find source file:

    C:/build/workspace/cling-test/src/core/textinput/src/textinput/Editor.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  tools/cling/CMakeLists.txt:142 (llvm_add_library)
  tools/cling/lib/UserInterface/CMakeLists.txt:17 (add_cling_library)
2015-04-01 09:55:10 +02:00
Pere Mato
8a75957803 Fix for waning in ROOT-7184 2015-03-19 17:50:44 +01:00
Pere Mato
20e2f24106 Fix for ROOT-7184 - CMake config issue when enabling cling tests 2015-03-13 18:31:50 +01:00
Axel Naumann
faf2b44a0d Tell which language is enabled (ROOT-7090). 2015-02-21 23:15:27 +01:00
Vassil Vassilev
22f891e9be llvm::OwningPtr to std::unique_ptr. 2014-08-14 14:56:38 +02:00
Philippe Canal
576ca3ca96 Remove trailing spaces 2014-08-13 16:08:36 +02:00
Axel Naumann
0f77b4ff1b Less mem leaks. 2014-07-01 16:10:07 +02:00
Axel Naumann
93970e8c35 Replace StoredValueRef by Value. 2014-04-01 18:31:58 +02:00
Axel Naumann
f30e498afd Try again: fix standalone cling; now verified on Win. 2014-03-10 13:43:01 +01:00
Axel Naumann
5634799c7b Typo. 2014-03-09 21:17:01 +01:00
Axel Naumann
f24006695a Try again with CMake-ism: handle empty COMPILE_FLAGS. 2014-03-09 13:34:00 +01:00
Axel Naumann
1ecfebabdb Apparently COMPILE_FLAGS can be empty. 2014-03-09 12:52:59 +01:00
Axel Naumann
d7ca5b7759 Use new libdep syntax; parameterize target libs to link. 2014-03-08 18:47:09 +01:00
Bertrand Bellenot
2927b40462 Add /EHsc exception handling compiler flag for MSVC 2014-02-19 14:32:57 +01:00
Axel Naumann
2324d15772 Fix typo in arry idx (ROOT-6056). 2014-02-10 09:52:28 +01:00
Bertrand Bellenot
571e739524 Fix a potential crash when there is a line longer than the terminal width (taking two or more lines to display) in the history (using up arrow key) in a ROOT session while the terminal's buffer is full 2014-02-10 09:52:28 +01:00
Axel Naumann
c36da12a79 Disable history if envvar CLING_NOHISTORY is set - for fixed memory address. 2014-02-06 17:40:54 +01:00
Axel Naumann
15de5b66e9 Fix -fexceptions for CMake. 2014-01-15 15:52:58 +01:00
CristinaCristescu
6296b84ab3 Changes to redirection. 2014-01-15 12:02:03 +01:00
CristinaCristescu
0ec0ba48b6 Change redirection from Interpreter to MetaProcessor. 2014-01-15 12:02:03 +01:00
Axel Naumann
8aedeca69c Refer to license in CMake files. 2014-01-07 12:02:58 +01:00
Axel Naumann
44481ace1e Fix license; remove $Id$ version. 2014-01-07 11:14:04 +01:00
Axel Naumann
5da6e646a5 Correct licenses in Makefiles. 2014-01-07 11:13:56 +01:00
Vassil Vassilev
5c24b7cfd6 From Peter Kummel. Compile with -fexceptions on. 2013-10-20 23:00:59 +02:00
Vassil Vassilev
96a013d91a Reduce/update patches. 2013-10-20 15:22:03 +02:00
Axel Naumann
5706d4bdef Workaround broken JIT exceptions, use longjmp instead. 2013-10-03 09:54:00 +02:00
Axel Naumann
95c14596f0 Fix small string / $HOME mess. 2013-09-26 17:54:18 +02:00
Axel Naumann
6c0e0a2103 Reimplement GetUserHomeDirectory(). 2013-09-26 17:54:16 +02:00
Axel Naumann
37e58b7dba Typo 2013-09-11 10:11:04 +02:00
Axel Naumann
3a8534d285 Improve exception reporting. 2013-09-11 09:41:52 +02:00
Axel Naumann
0782d4d515 Make CompilationException public, (also) use new cling runtime exception as base. 2013-09-09 18:02:53 +02:00
Axel Naumann
0a9be4bfd1 Install fatal error handler throwing an exception. Yes that is dangerous. 2013-09-09 18:02:53 +02:00
Vassil Vassilev
5873981203 File was renamed. 2013-09-09 17:31:53 +02:00
Vassil Vassilev
0c4a39f10f Handle better the exceptions. 2013-09-07 10:46:54 +02:00
Vassil Vassilev
34d2c33c18 Handle the default interpreter's runtime exception. 2013-09-06 23:47:55 +02:00
Vassil Vassilev
683a11e9e9 Use default cling style for naming classes. 2013-09-06 23:47:55 +02:00
Baozeng Ding
2224bba3a7 Synthesize throwing of exception to handle the null deref. 2013-09-06 23:47:54 +02:00
Vassil Vassilev
f282a9a7b9 Add proper handling of the runtime exception. 2013-09-05 19:08:56 +02:00
Vassil Vassilev
7179804c46 Move the handling of unhandled exceptions in the loop.
Indeed if the UserInterface.cpp is compiled without -fno-exceptions I get:
****************** CLING ******************
* Type C++ code and press enter to run it *
*             Type .q to exit             *
*******************************************
[cling]$ throw 12;
Exception occurred. Recovering...
[cling]$ .q

So the issue is still in the build system, because I built UserInterface.cpp 'by hand'.
2013-08-27 23:46:41 +02:00
Vassil Vassilev
dc47e5f3b5 The standard said use catch(...) and not catch() 2013-08-27 23:42:03 +02:00
Vassil Vassilev
77b0bb0a30 Try to handle exceptions coming from the JIT.
The idea is whenever there is an exception cling to be able to recover from it
and continue working. For example:
[cling] throw 12;
shouldn't crash the current session in the interpreter. Now that we have compiled
the UserInterface with exceptions on, I hoped to be able to catch exceptions
coming from the JIT easily, but obviously I am still missing something.
2013-08-27 23:05:53 +02:00
Axel Naumann
1430c5ee35 Remove debug output 2013-08-26 18:17:55 +02:00
Axel Naumann
107c073d58 Allow the UserInterface to use exceptions. 2013-08-26 17:26:53 +02:00
Axel Naumann
11e71f5c76 Make result evaluation optional again. 2013-06-10 17:12:50 +02:00
Axel Naumann
0c1c22f002 Return action result and Value from all interfaces. Force callers to rpovide them, to make them handle errors etc. 2013-06-07 15:19:51 +02:00
Axel Naumann
ed9a20937f textinput is now part of cling; also for CMake 2013-05-17 06:48:40 +02:00
Axel Naumann
fea9ca7ff5 Remove previous ROOT parent drectory of textinput. 2013-05-16 14:27:27 +08:00
Axel Naumann
bef24f727c textinput is really textinput/src/textinput; move. 2013-05-16 14:26:43 +08:00
Axel Naumann
2f97cd908a Remove svn checkout step 2013-05-16 01:49:48 +02:00
Fons Rademakers
cedb54e76d add textinput to the cling repo. 2013-05-08 16:24:49 +02:00