[lldb] Don't call CopyForBreakpoint from a Breakpoint's constructor
authorTatyana Krasnukha <tatyana@synopsys.com>
Thu, 13 Feb 2020 13:48:38 +0000 (16:48 +0300)
committerTatyana Krasnukha <tatyana@synopsys.com>
Tue, 18 Feb 2020 10:49:07 +0000 (13:49 +0300)
commit185ef697ef5c60d7a5c801925e6abdad52226c2b
tree539ed0a2a140f59d2a179fe08655797fff7b6a58
parentd4576080da72fdedff6842a1256fb6f11cee6b3b
[lldb] Don't call CopyForBreakpoint from a Breakpoint's constructor

Some implementations (BreakpointResolverScripted) try calling the breakpoint's shared_from_this(),
that makes LLDB crash.
lldb/include/lldb/Breakpoint/Breakpoint.h
lldb/source/Breakpoint/Breakpoint.cpp
lldb/source/Target/Target.cpp
lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py