[all-commits] [llvm/llvm-project] e31f99: [lldb] Improve error message when evaluating expre...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Fri May 26 08:50:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e31f99464216ef4d04ffa821e174522b699780ee
https://github.com/llvm/llvm-project/commit/e31f99464216ef4d04ffa821e174522b699780ee
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2023-05-26 (Fri, 26 May 2023)
Changed paths:
M lldb/source/Expression/UserExpression.cpp
M lldb/source/Expression/UtilityFunction.cpp
A lldb/test/Shell/Expr/TestExited.test
Log Message:
-----------
[lldb] Improve error message when evaluating expression when not stopped
When trying to run an expression after a process has existed, you
currently are shown the following error message:
(lldb) p strlen("")
error: Can't make a function caller while the process is running
This error is wrong and pretty uninformative. After this patch, the
following error message is shown:
(lldb) p strlen("")
error: unable to evaluate expression while the process is exited: the
process must be stopped because the expression might require
allocating memory.
rdar://109731325
Differential revision: https://reviews.llvm.org/D151497
More information about the All-commits
mailing list