diff options
| -rw-r--r-- | lldb/lit/Reproducer/Inputs/FileReplay.in | 2 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/Inputs/GDBRemoteReplay.in | 5 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/TestFileRepro.test | 4 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/TestGDBRemoteRepro.test | 4 | ||||
| -rw-r--r-- | lldb/source/API/SBReproducer.cpp | 3 | ||||
| -rw-r--r-- | lldb/tools/driver/Driver.cpp | 2 |
6 files changed, 5 insertions, 15 deletions
diff --git a/lldb/lit/Reproducer/Inputs/FileReplay.in b/lldb/lit/Reproducer/Inputs/FileReplay.in deleted file mode 100644 index 2ed2de164cc..00000000000 --- a/lldb/lit/Reproducer/Inputs/FileReplay.in +++ /dev/null @@ -1,2 +0,0 @@ -reproducer status -run diff --git a/lldb/lit/Reproducer/Inputs/GDBRemoteReplay.in b/lldb/lit/Reproducer/Inputs/GDBRemoteReplay.in deleted file mode 100644 index efbb7971ab6..00000000000 --- a/lldb/lit/Reproducer/Inputs/GDBRemoteReplay.in +++ /dev/null @@ -1,5 +0,0 @@ -reproducer status -breakpoint set -f simple.c -l 12 -run -bt -cont diff --git a/lldb/lit/Reproducer/TestFileRepro.test b/lldb/lit/Reproducer/TestFileRepro.test index b33f39efaef..281a01a5a85 100644 --- a/lldb/lit/Reproducer/TestFileRepro.test +++ b/lldb/lit/Reproducer/TestFileRepro.test @@ -7,9 +7,9 @@ # that the string "testing" is not printed. # RUN: %clang %S/Inputs/simple.c -g -o %t.out -# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in --capture %t.repro -- %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE +# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in --capture %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE # RUN: rm %t.out -# RUN: %lldb -x -b -s %S/Inputs/FileReplay.in --replay %t.repro -- %t.out | FileCheck %s --check-prefix CHECK --check-prefix REPLAY +# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY # CAPTURE: testing # REPLAY-NOT: testing diff --git a/lldb/lit/Reproducer/TestGDBRemoteRepro.test b/lldb/lit/Reproducer/TestGDBRemoteRepro.test index e2547052539..6fbda6c0617 100644 --- a/lldb/lit/Reproducer/TestGDBRemoteRepro.test +++ b/lldb/lit/Reproducer/TestGDBRemoteRepro.test @@ -7,8 +7,8 @@ # that the string "testing" is not printed. # RUN: %clang %S/Inputs/simple.c -g -o %t.out -# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture %t.repro -- %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE -# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteReplay.in --replay %t.repro -- %t.out | FileCheck %s --check-prefix CHECK --check-prefix REPLAY +# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE +# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY # CHECK: Breakpoint 1 # CHECK: Process {{.*}} stopped diff --git a/lldb/source/API/SBReproducer.cpp b/lldb/source/API/SBReproducer.cpp index db132e62465..ba08055c833 100644 --- a/lldb/source/API/SBReproducer.cpp +++ b/lldb/source/API/SBReproducer.cpp @@ -2901,8 +2901,6 @@ const char *SBReproducer::Replay(const char *path) { return error.c_str(); } - // FIXME: Enable the following code once the SB reproducer has landed. -#if 0 FileSpec file = loader->GetFile<SBInfo>(); if (!file) { error = "unable to get replay data from reproducer."; @@ -2911,7 +2909,6 @@ const char *SBReproducer::Replay(const char *path) { SBRegistry registry; registry.Replay(file); -#endif return nullptr; } diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 8845cb1fe54..ad611426560 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -905,7 +905,7 @@ main(int argc, char const *argv[]) WithColor::error() << "reproducer replay failed: " << error << '\n'; return 1; } - // FIXME: Return once SBReproducer::Replay actually performs the replay. + return 0; } SBError error = SBDebugger::InitializeWithErrorHandling(); |

