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.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Host/macosx/objcxx/Host.mm | ||
---|---|---|
411 | Wait. I think this is a misnomer. An lldb session over SSH is interactive, but not graphical. Should this be called IsInteractiveDesktopSession/IsInteractiveGraphicSession/IsInteractiveGUISession? |
lldb/source/Host/macosx/objcxx/Host.mm | ||
---|---|---|
411 | 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. |
lldb/source/Host/macosx/objcxx/Host.mm | ||
---|---|---|
411 |
... Even if you're not in front of the screen. |
lldb/source/Host/macosx/objcxx/Host.mm | ||
---|---|---|
411 | Right, that's why we don't want to open files in the external editor if we are connected over SSH. |
Wait. I think this is a misnomer. An lldb session over SSH is interactive, but not graphical. Should this be called IsInteractiveDesktopSession/IsInteractiveGraphicSession/IsInteractiveGUISession?