[all-commits] [llvm/llvm-project] f93d86: [lldb] Fix ^C handling in IOHandlerProcessSTDIO

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Mar 17 11:52:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f93d861349f923f6b7ca1a425d3632eec1ff2a72
      https://github.com/llvm/llvm-project/commit/f93d861349f923f6b7ca1a425d3632eec1ff2a72
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

  Changed paths:
    A lldb/lldb/test/API/iohandler/sigint/Makefile
    A lldb/lldb/test/API/iohandler/sigint/TestProcessIOHandlerInterrupt.py
    A lldb/lldb/test/API/iohandler/sigint/cat.cpp

  Log Message:
  -----------
  [lldb] Fix ^C handling in IOHandlerProcessSTDIO

D120762 accidentally moved the interrupt check into the block which was
reading stdio. This meant that a ^C only took effect after a regular
character has been pressed.

This patch fixes that and adds a (pexpect) test.

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




More information about the All-commits mailing list