#include "lldb/API/SBDefines.h"
+class SBBreakpointListImpl;
+
namespace lldb {
class LLDB_API SBBreakpoint {
lldb::BreakpointSP m_opaque_sp;
};
-class SBBreakpointListImpl;
-
class LLDB_API SBBreakpointList {
public:
SBBreakpointList(SBTarget &target);
}
// This is simple collection of breakpoint id's and their target.
-class lldb::SBBreakpointListImpl {
+class SBBreakpointListImpl {
public:
- SBBreakpointListImpl(SBTarget &target) : m_target_wp() {
- if (target.IsValid())
- m_target_wp = target.GetSP();
+ SBBreakpointListImpl(lldb::TargetSP target_sp) : m_target_wp() {
+ if (target_sp && target_sp->IsValid())
+ m_target_wp = target_sp;
}
~SBBreakpointListImpl() = default;
};
SBBreakpointList::SBBreakpointList(SBTarget &target)
- : m_opaque_sp(new lldb::SBBreakpointListImpl(target)) {}
+ : m_opaque_sp(new SBBreakpointListImpl(target.GetSP())) {}
SBBreakpointList::~SBBreakpointList() {}