Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
dart::Breakpoint Class Reference

#include <debugger.h>

Public Member Functions

 Breakpoint (intptr_t id, BreakpointLocation *bpt_location, bool is_single_shot, const Closure &closure)
 
intptr_t id () const
 
Breakpointnext () const
 
void set_next (Breakpoint *n)
 
BreakpointLocationbpt_location () const
 
void set_bpt_location (BreakpointLocation *new_bpt_location)
 
bool is_single_shot () const
 
ClosurePtr closure () const
 
void Enable ()
 
void Disable ()
 
bool is_enabled () const
 
void PrintJSON (JSONStream *stream)
 

Friends

class BreakpointLocation
 

Detailed Description

Definition at line 48 of file debugger.h.

Constructor & Destructor Documentation

◆ Breakpoint()

dart::Breakpoint::Breakpoint ( intptr_t  id,
BreakpointLocation bpt_location,
bool  is_single_shot,
const Closure closure 
)
inline

Definition at line 50 of file debugger.h.

54 : id_(id),
55 next_(nullptr),
56 closure_(closure.ptr()),
57 bpt_location_(bpt_location),
58 is_single_shot_(is_single_shot) {}
ClosurePtr closure() const
Definition debugger.h:68
BreakpointLocation * bpt_location() const
Definition debugger.h:64
bool is_single_shot() const
Definition debugger.h:67

Member Function Documentation

◆ bpt_location()

BreakpointLocation * dart::Breakpoint::bpt_location ( ) const
inline

Definition at line 64 of file debugger.h.

64{ return bpt_location_; }

◆ closure()

ClosurePtr dart::Breakpoint::closure ( ) const
inline

Definition at line 68 of file debugger.h.

68{ return closure_; }

◆ Disable()

void dart::Breakpoint::Disable ( )
inline

Definition at line 75 of file debugger.h.

75 {
76 ASSERT(enabled_);
77 enabled_ = false;
78 }
#define ASSERT(E)

◆ Enable()

void dart::Breakpoint::Enable ( )
inline

Definition at line 70 of file debugger.h.

70 {
71 ASSERT(!enabled_);
72 enabled_ = true;
73 }

◆ id()

intptr_t dart::Breakpoint::id ( ) const
inline

Definition at line 60 of file debugger.h.

60{ return id_; }

◆ is_enabled()

bool dart::Breakpoint::is_enabled ( ) const
inline

Definition at line 80 of file debugger.h.

80{ return enabled_; }

◆ is_single_shot()

bool dart::Breakpoint::is_single_shot ( ) const
inline

Definition at line 67 of file debugger.h.

67{ return is_single_shot_; }

◆ next()

Breakpoint * dart::Breakpoint::next ( ) const
inline

Definition at line 61 of file debugger.h.

61{ return next_; }

◆ PrintJSON()

void dart::Breakpoint::PrintJSON ( JSONStream stream)

Definition at line 191 of file debugger.cc.

191 {
192 JSONObject jsobj(stream);
193 jsobj.AddProperty("type", "Breakpoint");
194
195 jsobj.AddFixedServiceId("breakpoints/%" Pd "", id());
196 jsobj.AddProperty("enabled", enabled_);
197 jsobj.AddProperty("breakpointNumber", id());
198 jsobj.AddProperty("resolved", bpt_location_->IsResolved());
199 if (bpt_location_->IsResolved()) {
200 jsobj.AddLocation(bpt_location_);
201 } else {
202 jsobj.AddUnresolvedLocation(bpt_location_);
203 }
204}
bool IsResolved() const
Definition debugger.h:150
#define Pd
Definition globals.h:408

◆ set_bpt_location()

void dart::Breakpoint::set_bpt_location ( BreakpointLocation new_bpt_location)

Definition at line 168 of file debugger.cc.

168 {
169 // Only latent breakpoints can be moved.
170 ASSERT((new_bpt_location == nullptr) || bpt_location_->IsLatent());
171 bpt_location_ = new_bpt_location;
172}
bool IsLatent() const
Definition debugger.h:151

◆ set_next()

void dart::Breakpoint::set_next ( Breakpoint n)
inline

Definition at line 62 of file debugger.h.

62{ next_ = n; }

Friends And Related Symbol Documentation

◆ BreakpointLocation

friend class BreakpointLocation
friend

Definition at line 94 of file debugger.h.


The documentation for this class was generated from the following files: