[lldb] Use the IOHandler's stream instead of the debugger's in PrintAsync
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 14 Mar 2022 16:26:39 +0000 (09:26 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 14 Mar 2022 17:11:50 +0000 (10:11 -0700)
commit2436c5703e6a33be1d002d3acebc6cbc1bfe678e
tree82ec565c243d66742487a87dd0dd87177fbc6881
parent250620f76e070cbbd4e8511f751f577b6e1633ac
[lldb] Use the IOHandler's stream instead of the debugger's in PrintAsync

PrintAsync is relying on the IOHandler to print to the output/error
stream. In that context it doesn't make much sense that this is using
the debugger's streams rather than the one from the IOHandler.

Differential revision: https://reviews.llvm.org/D121536
lldb/include/lldb/Core/IOHandler.h
lldb/source/Core/Debugger.cpp
lldb/source/Core/IOHandler.cpp