[Lldb-commits] [PATCH] D121912: [lldb] Fix ^C handling in IOHandlerProcessSTDIO

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 18 00:40:10 PDT 2022


labath added a comment.

In D121912#3389378 <https://reviews.llvm.org/D121912#3389378>, @DavidSpickett wrote:

> Do you know if the pexpect test will cleanup the debugee process if some part of the test fails? Or will we have that hanging around in its infinite loop?

It won't, but the debuggee is not doing an infinite loop. The `while (std::getline(std::cin, str))` thingy will terminate when it reaches EOF, which will happen when lldb gets killed at the latest (if lldb is still somewhat functioning, it will kill the inferior first, when *it* detects the EOF).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121912/new/

https://reviews.llvm.org/D121912



More information about the lldb-commits mailing list