llvm-project/lldb/source/Plugins/Process/NetBSD
Kamil Rytarowski 8a4bf06ba9 Fix a crash in *NetBSD::Factory::Launch
Summary:
We cannot call process_up->SetState() inside
the NativeProcessNetBSD::Factory::Launch
function because it triggers a NULL pointer
deference.

The generic code for launching a process in:
GDBRemoteCommunicationServerLLGS::LaunchProcess
sets the m_debugged_process_up pointer after
a successful call to  m_process_factory.Launch().
If we attempt to call process_up->SetState()
inside a platform specific Launch function we
end up dereferencing a NULL pointer in
NativeProcessProtocol::GetCurrentThreadID().

Use the proper call process_up->SetState(,false)
that sets notify_delegates to false.

Sponsored by <The NetBSD Foundation>

Reviewers: labath, joerg

Reviewed By: labath

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D42868

llvm-svn: 324234
2018-02-05 13:16:22 +00:00
..
CMakeLists.txt Add support for tracing hello-world application on NetBSD 2017-03-28 22:43:17 +00:00
NativeProcessNetBSD.cpp Fix a crash in *NetBSD::Factory::Launch 2018-02-05 13:16:22 +00:00
NativeProcessNetBSD.h Fix netbsd, freebsd and osx builds for ArchSpec move 2017-11-13 16:47:37 +00:00
NativeRegisterContextNetBSD.cpp Clean up NativeRegisterContext 2017-11-10 11:05:49 +00:00
NativeRegisterContextNetBSD.h Clean up NativeRegisterContext 2017-11-10 11:05:49 +00:00
NativeRegisterContextNetBSD_x86_64.cpp Clean up NativeRegisterContext 2017-11-10 11:05:49 +00:00
NativeRegisterContextNetBSD_x86_64.h Clean up NativeRegisterContext 2017-11-10 11:05:49 +00:00
NativeThreadNetBSD.cpp Clean up NativeRegisterContext 2017-11-10 11:05:49 +00:00
NativeThreadNetBSD.h Clean up NativeRegisterContext 2017-11-10 11:05:49 +00:00