[LLDB] Add a hook to notify REPLs that an expression was evaluated
authorwalter erquinigo <walter@modular.com>
Wed, 3 May 2023 02:40:12 +0000 (21:40 -0500)
committerwalter erquinigo <walter@modular.com>
Thu, 4 May 2023 19:44:03 +0000 (14:44 -0500)
commitbfb7c99f3aeab09236adf1f684f7144f384c6dd7
tree8b0bf905193d992de140e6ef334a80e27f5f397f
parentdb5f745a2bfcd1b93fc298da6cfcf5ed2f00e98f
[LLDB] Add a hook to notify REPLs that an expression was evaluated

REPL implementations don't have an easy way to know that an expression has been evaluated, so I'm adding a simple function for that. In the future we can add another hook for meta commands.

Differential Revision: https://reviews.llvm.org/D149719
lldb/include/lldb/Expression/REPL.h
lldb/source/Expression/REPL.cpp