Some implementations (BreakpointResolverScripted) try calling the breakpoint's shared_from_this(),
that makes LLDB crash.
Added a test case that reproduced the issue.
Paths
| Differential D74556
[lldb] Don't call CopyForBreakpoint from a Breakpoint's constructor ClosedPublic Authored by tatyana-krasnukha on Feb 13 2020, 7:05 AM.
Details
Summary Some implementations (BreakpointResolverScripted) try calling the breakpoint's shared_from_this(), Added a test case that reproduced the issue.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Feb 13 2020, 10:14 AM Comment Actions LGTM
Revision Contents
Diff 244411 lldb/include/lldb/Breakpoint/Breakpoint.h
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py
lldb/source/Breakpoint/Breakpoint.cpp
lldb/source/Target/Target.cpp
|
nit: How about renaming this to Breakpoint::CopyToTarget instead? That seems a bit more explanatory than Breakpoint:: CopyFromBreakpoint.