[all-commits] [llvm/llvm-project] d79273: [lldb/ScriptInterpreter] Extract IO redirection logic

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jun 25 09:43:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d79273c941d58486d09c020eb7767a5246a9c24d
      https://github.com/llvm/llvm-project/commit/d79273c941d58486d09c020eb7767a5246a9c24d
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-25 (Thu, 25 Jun 2020)

  Changed paths:
    M lldb/include/lldb/Interpreter/ScriptInterpreter.h
    M lldb/source/Interpreter/ScriptInterpreter.cpp
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

  Log Message:
  -----------
  [lldb/ScriptInterpreter] Extract IO redirection logic

This patch takes the IO redirection logic from ScriptInterpreterPython
and moves it into the interpreter library so that it can be used by
other script interpreters. I've turned it into a RAII object so that we
don't have to worry about cleaning up in the calling code.

Differential revision: https://reviews.llvm.org/D82396




More information about the All-commits mailing list