[lldb] Add a function to check if lldb is running in an interactive session
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 3 May 2022 22:04:45 +0000 (15:04 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 3 May 2022 22:11:57 +0000 (15:11 -0700)
commitb945b62cf35e1b45ffb9233958756743b2b5fd46
treef1772ed20abbefcc54d73ee11c27f8ab05d85556
parent3d08c778c01e1577752762da8c980db32b4e6d55
[lldb] Add a function to check if lldb is running in an interactive session

This patch adds a function to check if lldb is running in an interactive
debug session. Currently this API only works on macOS. It's expected to
be used in combination with Host::OpenFileInExternalEditor.

Differential revision: https://reviews.llvm.org/D124872
lldb/include/lldb/Host/Host.h
lldb/source/Host/common/Host.cpp
lldb/source/Host/macosx/objcxx/Host.mm