[Reproducers] Don't intercept SBDebugger::SetInputFileHandle
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Mar 2019 01:49:54 +0000 (01:49 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Mar 2019 01:49:54 +0000 (01:49 +0000)
With the reproducer logic in place for the command interpreter we no
longer need to make SBDebugger::SetInputFileHandle a no-op.

llvm-svn: 355469

lldb/source/API/SBReproducer.cpp

index 0e4b720..db132e6 100644 (file)
@@ -45,9 +45,6 @@ SBRegistry::SBRegistry() {
 
   // Custom implementation.
   Register(&invoke<void (SBDebugger::*)(
-               FILE *, bool)>::method<&SBDebugger::SetInputFileHandle>::doit,
-           &SetFileHandleRedirect);
-  Register(&invoke<void (SBDebugger::*)(
                FILE *, bool)>::method<&SBDebugger::SetErrorFileHandle>::doit,
            &SetFileHandleRedirect);
   Register(&invoke<void (SBDebugger::*)(
@@ -706,6 +703,7 @@ SBRegistry::SBRegistry() {
     LLDB_REGISTER_METHOD(bool, SBDebugger, GetAsync, ());
     LLDB_REGISTER_METHOD(void, SBDebugger, SkipLLDBInitFiles, (bool));
     LLDB_REGISTER_METHOD(void, SBDebugger, SkipAppInitFiles, (bool));
+    LLDB_REGISTER_METHOD(void, SBDebugger, SetInputFileHandle, (FILE *, bool));
     LLDB_REGISTER_METHOD(FILE *, SBDebugger, GetInputFileHandle, ());
     LLDB_REGISTER_METHOD(FILE *, SBDebugger, GetOutputFileHandle, ());
     LLDB_REGISTER_METHOD(FILE *, SBDebugger, GetErrorFileHandle, ());