llvm-project/lldb/source/Breakpoint
Pavel Labath 82de8df26f [lldb] Clarify StructuredDataImpl ownership
StructuredDataImpl ownership semantics is unclear at best. Various
structures were holding a non-owning pointer to it, with a comment that
the object is owned somewhere else. From what I was able to gather that
"somewhere else" was the SBStructuredData object, but I am not sure that
all created object eventually made its way there. (It wouldn't matter
even if they did, as we are leaking most of our SBStructuredData
objects.)

Since StructuredDataImpl is just a collection of two (shared) pointers,
there's really no point in elaborate lifetime management, so this patch
replaces all StructuredDataImpl pointers with actual objects or
unique_ptrs to it. This makes it much easier to resolve SBStructuredData
leaks in a follow-up patch.

Differential Revision: https://reviews.llvm.org/D114791
2021-12-13 21:04:51 +01:00
..
Breakpoint.cpp Add breakpoint resolving stats to each target. 2021-10-27 16:50:11 -07:00
BreakpointID.cpp Use llvm::is_contained (NFC) 2021-10-24 09:32:57 -07:00
BreakpointIDList.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 12:21:54 +01:00
BreakpointList.cpp Use llvm::erase_if (NFC) 2021-10-18 09:33:42 -07:00
BreakpointLocation.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointLocationCollection.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
BreakpointLocationList.cpp
BreakpointName.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointOptions.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointPrecondition.cpp
BreakpointResolver.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
BreakpointResolverAddress.cpp
BreakpointResolverFileLine.cpp [source map] fix relative path breakpoints 2021-07-29 18:36:06 -07:00
BreakpointResolverFileRegex.cpp [lldb] Refactor argument group by SourceLocationSpec (NFCI) 2021-05-04 23:04:31 +00:00
BreakpointResolverName.cpp [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
BreakpointResolverScripted.cpp [lldb] Clarify StructuredDataImpl ownership 2021-12-13 21:04:51 +01:00
BreakpointSite.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointSiteList.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CMakeLists.txt
Stoppoint.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
StoppointCallbackContext.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
StoppointSite.cpp
Watchpoint.cpp
WatchpointList.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
WatchpointOptions.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00