Typing "gui" will crash programs that don't give LLDB a real terminal.
authorGreg Clayton <gclayton@apple.com>
Wed, 14 Jan 2015 19:45:21 +0000 (19:45 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 14 Jan 2015 19:45:21 +0000 (19:45 +0000)
commit456f2712b373750b57fd3783a0bfed0e5b4f2449
tree8d729040b6a6cb7ae5ad9597d7250986b7407d38
parent0fd9e5f719d6a703f9bcf9bcb86ca88c73ea1acc
Typing "gui" will crash programs that don't give LLDB a real terminal.

We now verify that the debugger's input file is a valid terminal file descriptor before allowing the "gui" command to try to run.

Xcode would crash if you typed "gui" at the command line prior to this fix.

<rdar://problem/18775851>

llvm-svn: 226027
lldb/source/Commands/CommandObjectGUI.cpp