summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBCommandInterpreterRunOptions.cpp
AgeCommit message (Collapse)Author
2024-06-07Add AllowRepeats to SBCommandInterpreterRunOptions. (#94786)jimingham
This is useful if you have a transcript of a user session and want to rerun those commands with RunCommandInterpreter. The same functionality is also useful in testing. I'm adding it primarily for the second reason. In a subsequent patch, I'm adding the ability to Python based commands to provide their "auto-repeat" command. Among other things, that will allow potentially state destroying user commands to prevent auto-repeat. Testing this with Shell or pexpect tests is not nearly as accurate or convenient as using RunCommandInterpreter, but to use that I need to allow auto-repeat. I think for consistency's sake, having interactive sessions always do auto-repeats is the right choice, though that's a lightly held opinion...
2022-01-20[lldb] Decouple instrumentation from the reproducersJonas Devlieghere
Remove the last remaining references to the reproducers from the instrumentation. This patch renames the relevant files and macros. Differential revision: https://reviews.llvm.org/D117712
2022-01-09[lldb] Remove LLDB_RECORD_RESULT macroJonas Devlieghere
2022-01-09[lldb] Remove reproducer instrumentationJonas Devlieghere
This patch removes most of the reproducer instrumentation. It keeps around the LLDB_RECORD_* macros for logging. See [1] for more details. [1] https://lists.llvm.org/pipermail/lldb-dev/2021-September/017045.html Differential revision: https://reviews.llvm.org/D116847
2022-01-02[API] Remove redundant member initialization (NFC)Kazu Hirata
Identified with readability-redundant-member-init.
2021-03-05[lldb/API] Add CommandInterpreter::{Get,Set}PrintErrors to SBAPI (NFC)Med Ismail Bennani
This patch exposes the getter and setter methods for the command interpreter `print_errors` run option. rdar://74816984 Differential Revision: https://reviews.llvm.org/D98001 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-07-30[lldb] Add copy ctor/assignment operator to SBCommandInterpreterRunOptionsJonas Devlieghere
2020-06-24[lldb/API] Use std::make_unique<> (NFC)Jonas Devlieghere
I was holding off on this change until we moved to C++14 as to not have to convert llvm::make_unique to std::make_unique. That happened a while ago so here's the first patch for the API which had a bunch of raw `new`s.
2020-05-01[lldb/API] Add SBCommandInterpreterRunResultJonas Devlieghere
This adds an RunCommandInterpreter overload that returns an instance of SBCommandInterpreterRunResults. The goal is to avoid having to add more and more overloads when we need more output arguments. Differential revision: https://reviews.llvm.org/D79120
2020-04-30[lldb/API] Move SBCommandInterpreterRunOption in its own header. (NFC)Jonas Devlieghere
Currently, `SBCommandInterpreterRunOptions` is defined in `SBCommandInterpreter.h`. Given that the options are always passed by reference, a forward declaration is sufficient. That's not the case for `SBCommandInterpreterRunResults`, which we need for a new overload for `RunCommandInterpreter` and that returns this new class by value. We can't include `SBCommandInterpreter.h` because `SBCommandInterpreter::GetDebugger()` returns SBDebugger by value and therefore needs a full definition. This patch moves the definition of `SBCommandInterpreterRunOptions` into a new header. In a later patch, `SBCommandInterpreterRunResults` will be defined in there as well, solving the aforementioned problem. Differential revision: https://reviews.llvm.org/D79115