[all-commits] [llvm/llvm-project] 0f339e: Fix a bug in handling ^C at the "y/n/a" completion...
jimingham via All-commits
all-commits at lists.llvm.org
Wed Sep 27 17:21:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f339e6567bffb290e409ef5de272fb75ce70234
https://github.com/llvm/llvm-project/commit/0f339e6567bffb290e409ef5de272fb75ce70234
Author: Jim Ingham <jingham at apple.com>
Date: 2023-09-27 (Wed, 27 Sep 2023)
Changed paths:
M lldb/include/lldb/Host/Editline.h
M lldb/source/Host/common/Editline.cpp
M lldb/test/API/iohandler/completion/TestIOHandlerCompletion.py
Log Message:
-----------
Fix a bug in handling ^C at the "y/n/a" completion prompt.
We just forget to check for interrupt while waiting for the answer to the prompt. But if we are in the interrupt state then the lower
layers of the EditLine code just eat all characters so we never get out of the query prompt. You're pretty much stuck and have to kill lldb.
The solution is to check for the interrupt. The patch is a little bigger because where I needed to check the Interrupt state I only
had the ::EditLine object, but the editor state is held in lldb's EditLine wrapper, so I had to do a little work to get my hands on it.
More information about the All-commits
mailing list