llvm-project/lldb/source
Raphael Isemann be18df3d23 [lldb] Fix that SIGWINCH crashes IOHandlerEditline when we are not using the editline backend
Summary:
TerminalSizeChanged is called from our SIGWINCH signal handler but the
IOHandlerEditline currently doesn't check if we are actually using the real
editline backend. If we're not using the real editline backend, `m_editline_up`
won't be set and `IOHandlerEditline::TerminalSizeChanged` will access
the empty unique_ptr. In a real use case we don't use the editline backend
when we for example read input from a file. We also create some temporary
IOHandlerEditline's during LLDB startup it seems that are also treated
as non-interactive (apparently to read startup commands).

This patch just adds a nullptr check for`m_editline_up` as we do in the rest of
IOHandlerEditline.

Fixes rdar://problem/63921950

Reviewers: labath, friss

Reviewed By: friss

Subscribers: abidh, JDevlieghere

Differential Revision: https://reviews.llvm.org/D81729
2020-06-19 19:14:16 +02:00
..
API [lldb/Test] Assert that no targets or modules remain after a test completes. 2020-06-12 15:17:44 -07:00
Breakpoint [lldb/Interpreter] Support color in CommandReturnObject 2020-06-09 10:45:45 -07:00
Commands [lldb] Remove redundant access specifiers (NFC) 2020-06-15 21:34:13 -07:00
Core [lldb] Fix that SIGWINCH crashes IOHandlerEditline when we are not using the editline backend 2020-06-19 19:14:16 +02:00
DataFormatters [lldb] Small improvements in ValueObjectPrinter::PrintDecl (NFC) 2020-06-12 21:05:05 -07:00
Expression [lldb/Interpreter] Support color in CommandReturnObject 2020-06-09 10:45:45 -07:00
Host Set appropriate host defines for building under emscripten 2020-06-18 17:00:53 -07:00
Initialization [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Interpreter [lldb/Python] Fix the infinitely looping Python prompt bug 2020-06-16 11:05:19 -07:00
Plugins Repair support for launching ios/tv/watch simulator binaries through platform 2020-06-19 09:42:44 -07:00
Symbol [lldb][NFC] Remove unused DEPTH_INCREMENT in CompilerType.cpp 2020-06-19 16:35:03 +02:00
Target Remove code duplication from RegisterContextPOSIX_* 2020-06-18 01:02:46 +05:00
Utility [lldb] Remove Scalar operator= overloads 2020-06-11 13:55:02 +02:00
CMakeLists.txt Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well. 2020-01-16 19:04:08 -05:00
lldb.cpp [lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY 2020-02-20 10:07:50 -08:00