diff options
| author | Adrian Prantl <adrian-prantl@users.noreply.github.com> | 2024-04-19 22:14:55 +0200 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2024-04-19 16:41:07 -0700 |
| commit | 6a35ee8077647b32626c3c41f9d9da4dae6670fc (patch) | |
| tree | c730046cf07822fdb004884ec6e9b29592acc377 /lldb/source/Expression/IRExecutionUnit.cpp | |
| parent | c8627e4e0c8ac453844638522b887ac7b7687672 (diff) | |
| download | llvm-6a35ee8077647b32626c3c41f9d9da4dae6670fc.tar.gz llvm-6a35ee8077647b32626c3c41f9d9da4dae6670fc.tar.bz2 llvm-6a35ee8077647b32626c3c41f9d9da4dae6670fc.zip | |
[lldb] Provide a better error message for missing symbols (#89433)
This adds a hint to the missing symbols error message to make it easier
to understand what this means to users.
[Reapplies an earlier patch with a test fix.]
Diffstat (limited to 'lldb/source/Expression/IRExecutionUnit.cpp')
| -rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index cb9bee8733e1..07df8c52a2a4 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -431,7 +431,9 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr, } m_failed_lookups.clear(); - + ss.PutCString( + "\nHint: The expression tried to call a function that is not present " + "in the target, perhaps because it was optimized out by the compiler."); error.SetErrorString(ss.GetString()); return; |
