From e6a9e439d451fa1741235e157591a7eb7b91a5e7 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 17 May 2011 03:51:29 +0000 Subject: 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 --- lldb/source/Expression/ClangUtilityFunction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lldb/source/Expression/ClangUtilityFunction.cpp') diff --git a/lldb/source/Expression/ClangUtilityFunction.cpp b/lldb/source/Expression/ClangUtilityFunction.cpp index 7882371ef3a..a48cf00b470 100644 --- a/lldb/source/Expression/ClangUtilityFunction.cpp +++ b/lldb/source/Expression/ClangUtilityFunction.cpp @@ -135,7 +135,11 @@ ClangUtilityFunction::Install (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; } } -- cgit v1.2.3