[Lldb-commits] [PATCH] D124872: [lldb] Add a function to check if lldb is running in an interactive session
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue May 3 15:08:08 PDT 2022
aprantl added inline comments.
================
Comment at: lldb/source/Host/macosx/objcxx/Host.mm:411
+bool Host::IsInteractiveSession() {
+#if !TARGET_OS_OSX
----------------
mib wrote:
> mib wrote:
> > aprantl wrote:
> > > Wait. I think this is a misnomer. An lldb session over SSH is interactive, but not graphical. Should this be called IsInteractiveDesktopSession/IsInteractiveGraphicSession/IsInteractiveGUISession?
> > FWIW, if you `open` a file on macOS over SSH, it would still open it in the default app. I'd expect the same behaviour here.
> > FWIW, if you `open` a file on macOS over SSH, it would still open it in the default app. I'd expect the same behaviour here.
>
> ... Even if you're not in front of the screen.
Right, that's why we don't want to open files in the external editor if we are connected over SSH.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124872/new/
https://reviews.llvm.org/D124872
More information about the lldb-commits
mailing list