diff options
| author | Jim Ingham <jingham@apple.com> | 2018-06-28 20:02:11 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2018-06-28 20:02:11 +0000 |
| commit | 0d231f7161272cb46e1ea04326da1cbdfec06923 (patch) | |
| tree | 46677075abea44f0990f019434e669c4f3d47a6d /lldb/source/Expression | |
| parent | 3cabf73270c450050d7d07be8f80cb97600d5af3 (diff) | |
| download | bcm5719-llvm-0d231f7161272cb46e1ea04326da1cbdfec06923.tar.gz bcm5719-llvm-0d231f7161272cb46e1ea04326da1cbdfec06923.zip | |
Add a way to load an image using a library name and list of paths.
This provides an efficient (at least on Posix platforms) way to offload to the
target process the search & loading of a library when all we have are the
library name and a set of potential candidate locations.
<rdar://problem/40905971>
llvm-svn: 335912
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/FunctionCaller.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Expression/FunctionCaller.cpp b/lldb/source/Expression/FunctionCaller.cpp index 622d8017536..9742ed0b270 100644 --- a/lldb/source/Expression/FunctionCaller.cpp +++ b/lldb/source/Expression/FunctionCaller.cpp @@ -91,8 +91,12 @@ bool FunctionCaller::WriteFunctionWrapper( m_jit_start_addr, m_jit_end_addr, m_execution_unit_sp, exe_ctx, can_interpret, eExecutionPolicyAlways)); - if (!jit_error.Success()) + if (!jit_error.Success()) { + diagnostic_manager.Printf(eDiagnosticSeverityError, + "Error in PrepareForExecution: %s.", + jit_error.AsCString()); return false; + } if (m_parser->GetGenerateDebugInfo()) { lldb::ModuleSP jit_module_sp(m_execution_unit_sp->GetJITModule()); |

