160 Commits

Author SHA1 Message Date
Axel Naumann
93970e8c35 Replace StoredValueRef by Value. 2014-04-01 18:31:58 +02:00
Vassil Vassilev
96319aa30f Implement .U FileName. 2014-03-31 14:03:08 +02:00
Timur Pocheptsov
3115300308 Protect against recursive definitions (for example,
data members of a type we're already priting - either static data member or "cross-references").
2014-03-21 11:24:58 +01:00
Axel Naumann
d7ca5b7759 Use new libdep syntax; parameterize target libs to link. 2014-03-08 18:47:09 +01:00
Vassil Vassilev
1851604b8c Rename printAST to printDebug. 2014-03-03 15:27:05 +01:00
Vassil Vassilev
f29b09e054 Remove .printIR and replace it with smarter debug class reusing the latest state tracker. 2014-03-03 15:27:04 +01:00
Vassil Vassilev
2073194a6e Trailing blanks, tabs. 2014-02-28 10:36:00 +01:00
Vassil Vassilev
943350a7c2 Implement .stats command printing out statistics about internal ADT 2014-02-28 10:35:59 +01:00
Axel Naumann
9b678f2829 Allow updating of the MetaProcessor's output stream, to redirect a meta command. 2014-02-25 14:18:01 +01:00
Axel Naumann
a7c08683ae Decl iteration can trigger deserialization; use PushTransactionRAII. 2014-02-20 17:12:58 +01:00
Vassil Vassilev
c992cf3047 Implement reloading on .L
We keep the FileEntry -> Transaction mapping so that next time there is .L
we can figure out that it was already loaded and unload it and reload it again.
2014-02-20 10:36:10 +01:00
Vassil Vassilev
a25c6b5ce5 Blanks. 2014-02-20 10:36:09 +01:00
Bertrand Bellenot
c70ddac80a Silent compilation warnings on Windows 2014-02-19 14:55:00 +01:00
Axel Naumann
789648df2d Add switch for lookup diags; enable it for gDebug>5 (ROOT-6070, ROOT-6044).
Use enum to avoid ambiguities between consecutive bollean args.
Use less default args to avoid Type* -> bool conversion.
2014-02-19 08:39:58 +01:00
Bertrand Bellenot
b9838091fd Fix compilation on Windows 2014-02-03 14:08:56 +01:00
CristinaCristescu
383911dc6a Tab completion, stacked redirection, unredirect to pipe, platform independence.
Tab completion works using the changed (but ROOT 5 compatible) syntax .> A.txt.
.> now uses dup2() that exists on Windows, too, instead of ttyname().
Tnis enables unredirection even during root > out.txt - which did not work in ROOT5.
Multiple ".> X.txt" can be stacked; ".>" unredirects back to the previous one on the stack.
2014-01-24 16:36:59 +01:00
CristinaCristescu
1465ec4d8a Warning and error fix.
(cherry picked from commit 9eb5a29d7c6d6430fb70a76f19b9a0e6d259da62)
2014-01-15 17:10:54 +01:00
CristinaCristescu
b2997ee67a Adjust to line size limit. 2014-01-15 16:43:57 +01:00
Axel Naumann
f9b047d85f Use the portable FILE. 2014-01-15 14:14:55 +01:00
CristinaCristescu
b3ba3f5804 Redirect changes touse SmallString. 2014-01-15 12:02:04 +01:00
CristinaCristescu
c9ec997188 Redirection special 2>&1 case. 2014-01-15 12:02:04 +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
CristinaCristescu
d30b5a0a23 Change flag for redirection.
correct
2014-01-15 12:02:03 +01:00
CristinaCristescu
34dfd69b53 Redirect err. 2014-01-15 12:02:03 +01:00
CristinaCristescu
b4e3a9b6b5 Redirect 2014-01-15 12:02:02 +01:00
CristinaCristescu
7684521068 Action on redirect. 2014-01-15 12:02:02 +01:00
CristinaCristescu
df5d7d2289 Redirect syntax. 2014-01-15 12:02:02 +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
Axel Naumann
2cefd7e994 Adapt to StoredValueRef interface change.
(cherry picked from commit b5d991d9a06b604fc7a9edcf9bff96d2899b8655)
2013-12-10 10:34:10 +01:00
Philippe Canal
bf982c59e4 Avoid reading past the end of a static buffer.
llvm::sys::fs::identify_magic takes a StringRef which
was automatically created from a the char[1024] buffer.
To create the StringRef automatically requires a call to
strlen but in this case the buffer is by definition not
null terminated.  We could either null terminate or better
yet just construct explicit the 'right' StringRef.
2013-11-21 18:11:02 +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
a375e7f201 Silence c++11 warning of unsigned->int init conversion. 2013-10-30 10:08:57 +01:00
Vassil Vassilev
ab8d7488ed Make .undo [Constant] really taking an optional constant. 2013-10-29 20:19:26 +01:00
Vassil Vassilev
21c8d3c81c Add support for .undo [Number], extend the meaning of the constant token, document. 2013-10-29 20:19:26 +01:00
Vassil Vassilev
a4c14b87e5 Rename interface with more meaningful name. 2013-10-29 20:19:25 +01:00
Bertrand Bellenot
98976770ba call string::find() only once (thanks Axel) 2013-10-28 14:51:56 +01:00
Bertrand Bellenot
2f7f48cb99 Fix Jira issue #ROOT-4939
Replace "/./" in path with single '/' it is more readable and solve the issue of gInterpreter->IsLoaded being too sensitive to the path's spelling
2013-10-28 12:28:58 +01:00
Axel Naumann
daf8c8281b llvm head interface changes. 2013-09-26 17:54:19 +02:00
Axel Naumann
0552bae468 Rmove invalud / unused fwd decl of Path. 2013-09-26 17:54:18 +02:00
Axel Naumann
8542f73128 Fix include. 2013-09-26 17:54:18 +02:00
Axel Naumann
1c8d0e6378 File magic moved / changed. 2013-09-26 17:54:18 +02:00
Axel Naumann
dfb8941422 Use StringRef instead of Path. 2013-09-26 17:54:18 +02:00
Axel Naumann
8f9e6ebe81 Use StringRef instead of Path. 2013-09-26 17:54:17 +02:00
Axel Naumann
0c59578ed3 Header renamed. 2013-09-26 17:54:17 +02:00
Axel Naumann
5c958d7df9 Register result of .L 2013-09-11 15:19:56 +02:00
Jerome Beclin
afcd8a7cca Commit of storeState/compareState that now print lookup table and included files
Implementation of .files moved in the Interpreter.cpp

storeState now calls three functions: dumpAST(), dumpLookup(), printIncludedFiles().
compareState now calls three functions: compareAST(), compareLookup(), compareIncludedFiles().
It's working for the included files and the AST, and it needs a new patch for
being able to dump the lookup tables (we cannot use dumpLookups() for the moment).
2013-09-07 10:41:01 +02:00
Philippe Canal
26a63ae38f Add missing transaction (fix .class) 2013-09-04 18:32:55 +02:00