[LLDB][GUI] Add initial searcher support
authorOmar Emara <mail@OmarEmara.dev>
Wed, 25 Aug 2021 20:54:49 +0000 (13:54 -0700)
committerGreg Clayton <gclayton@fb.com>
Wed, 25 Aug 2021 20:55:11 +0000 (13:55 -0700)
commit3c11e5722c302a9dcf01b97ace868e156e376bc6
tree7b1e3d72fa55821b58d1beed1ca776fbe0359340
parent6181427bb97fccde5e71323aef4524bf9b1376f4
[LLDB][GUI] Add initial searcher support

This patch adds a new type of reusable UI components. Searcher Windows
contain a text field to enter a search keyword and a list of scrollable
matches are presented. The target match can be selected and executed
which invokes a user callback to do something with the match.

This patch also adds one searcher delegate, which wraps the common
command completion searchers for simple use cases.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D108545
lldb/source/Core/IOHandlerCursesGUI.cpp