diff options
author | Greg Clayton <gclayton@apple.com> | 2011-05-17 03:51:29 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-05-17 03:51:29 +0000 |
commit | e6a9e439d451fa1741235e157591a7eb7b91a5e7 (patch) | |
tree | c42a70ed40265aafadbf0c7ece2f11c14369e993 /lldb/source/Expression/ClangUserExpression.cpp | |
parent | d495c5340d57a30a83496e6e9794b8bc746f99ad (diff) | |
download | bcm5719-llvm-e6a9e439d451fa1741235e157591a7eb7b91a5e7.tar.gz bcm5719-llvm-e6a9e439d451fa1741235e157591a7eb7b91a5e7.zip |
Fixed the "mmap" to work on MacOSX/darwin by supplying the correct arguemnts.
Modified ClangUserExpression and ClangUtilityFunction to display the actual
error (if one is available) that made the JIT fail instead of a canned
response.
Fixed the restoring of all register values when the 'G' packet doesn't work
to use the correct data.
llvm-svn: 131454
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r-- | lldb/source/Expression/ClangUserExpression.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index 563c28a36d6..dced0224a28 100644 --- a/lldb/source/Expression/ClangUserExpression.cpp +++ b/lldb/source/Expression/ClangUserExpression.cpp @@ -296,7 +296,11 @@ ClangUserExpression::Parse (Stream &error_stream, } else { - error_stream.Printf ("error: expression can't be interpreted or run\n", num_errors); + const char *error_cstr = jit_error.AsCString(); + if (error_cstr && error_cstr[0]) + error_stream.Printf ("error: %s\n", error_cstr); + else + error_stream.Printf ("error: expression can't be interpreted or run\n", num_errors); return false; } } |