[LLDB][NFC][Reliability] Fix uninitialized variables from Coverity scan. Part 2

Improve LLDB reliability by fixing the following "uninitialized variables" static code inspection warnings from
scan.coverity.com:

1476275, 1274012, 1455035, 1364789, 1454282
1467483, 1406152, 1406255, 1454837, 1454416
1467446, 1462022, 1461909, 1420566, 1327228
1367767, 1431254, 1467299, 1312678, 1431780
1454731, 1490403

Differential Revision: https://reviews.llvm.org/D130528
This commit is contained in:
Slava Gurevich
2022-07-25 15:52:21 -07:00
parent 2aab797d01
commit 4871dfc64e
15 changed files with 38 additions and 29 deletions

View File

@@ -104,7 +104,10 @@ ThreadPlanCallFunction::ThreadPlanCallFunction(
m_ignore_breakpoints(options.DoesIgnoreBreakpoints()),
m_debug_execution(options.GetDebug()),
m_trap_exceptions(options.GetTrapExceptions()), m_function_addr(function),
m_function_sp(0), m_takedown_done(false),
m_start_addr(), m_function_sp(0), m_subplan_sp(),
m_cxx_language_runtime(nullptr), m_objc_language_runtime(nullptr),
m_stored_thread_state(), m_real_stop_info_sp(), m_constructor_errors(),
m_return_valobj_sp(), m_takedown_done(false),
m_should_clear_objc_exception_bp(false),
m_should_clear_cxx_exception_bp(false),
m_stop_address(LLDB_INVALID_ADDRESS), m_return_type(return_type) {
@@ -134,7 +137,10 @@ ThreadPlanCallFunction::ThreadPlanCallFunction(
m_ignore_breakpoints(options.DoesIgnoreBreakpoints()),
m_debug_execution(options.GetDebug()),
m_trap_exceptions(options.GetTrapExceptions()), m_function_addr(function),
m_function_sp(0), m_takedown_done(false),
m_start_addr(), m_function_sp(0), m_subplan_sp(),
m_cxx_language_runtime(nullptr), m_objc_language_runtime(nullptr),
m_stored_thread_state(), m_real_stop_info_sp(), m_constructor_errors(),
m_return_valobj_sp(), m_takedown_done(false),
m_should_clear_objc_exception_bp(false),
m_should_clear_cxx_exception_bp(false),
m_stop_address(LLDB_INVALID_ADDRESS), m_return_type(CompilerType()) {}